Skip to content

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