Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed memcpy declaration #420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

RJain12
Copy link

@RJain12 RJain12 commented Jul 27, 2023

When I tried to run the CCG script, I got this error:

/Users/rishabjain/Desktop/Research/PETH neuron
test/human-layers/ExternalPackages/dev/analysis/monosynapticPairs/CCGHeart.c:195:3: error: call to
undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99
and later do not support implicit function declarations [-Wimplicit-function-declaration]
                memcpy(mxGetPr(plhs[1]), (void *)Pairs, PairCnt*sizeof(unsigned int));
                ^
/Users/rishabjain/Desktop/Research/PETH neuron
test/human-layers/ExternalPackages/dev/analysis/monosynapticPairs/CCGHeart.c:195:3: note: include the
header <string.h> or explicitly provide a declaration for 'memcpy'

The error message is indicating that the function memcpy is being used without a proper declaration.

I simply added

#include <string.h>

To this C engine file.

@brendonw1
Copy link
Collaborator

brendonw1 commented Jul 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants