Open
Conversation
Collaborator
|
Thank you very much!
Brendon Watson, MD-PhD
Assistant Professor in Psychiatry, Bioinformatics and Biomedical
Engineering
Biomedical Sciences Research Building, Room 5059
University of Michigan
109 Zina Pitcher Place
Ann Arbor, MI 48109-5720
Lab Website: http://watsonneurolab.org
Clinical phone: 734-764-0231
…On Thu, Jul 27, 2023 at 2:03 PM Rishab Jain ***@***.***> wrote:
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.
------------------------------
You can view, comment on, or merge this pull request online at:
#420
Commit Summary
- 3b8ccc1
<3b8ccc1>
Fixed memcpy declaration
File Changes
(1 file <https://github.com/buzsakilab/buzcode/pull/420/files>)
- *M* analysis/spikes/correlation/CCGHeart.c
<https://github.com/buzsakilab/buzcode/pull/420/files#diff-b4a24056031f069d5bc24c54347cf2fc294eafe36d085aefc88800c5f12765ec>
(2)
Patch Links:
- https://github.com/buzsakilab/buzcode/pull/420.patch
- https://github.com/buzsakilab/buzcode/pull/420.diff
—
Reply to this email directly, view it on GitHub
<#420>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA26WTP7V3DHZIXYOVTNO3TXSKUL5ANCNFSM6AAAAAA22OCWG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When I tried to run the CCG script, I got this error:
The error message is indicating that the function memcpy is being used without a proper declaration.
I simply added
To this C engine file.