buzsakilab / buzcode

Code for internal lab sharing - polishing has started but is by no means complete
http://www.buzsakilab.com/
GNU General Public License v3.0
120 stars 129 forks source link

Error in Compile Buzcode #410

Closed farazmoradi closed 2 years ago

farazmoradi commented 3 years ago

Hi, I am running this on MacOs.

Error in compileBuzcode (line 37) mex -O CCGHeart.c

dlevenstein commented 3 years ago

is there any more information about the error? Did any of the other mex lines run? Do you have a c compiler installed?

farazmoradi commented 3 years ago

Hi Dan, this is the full error:

In compileBuzcode (line 28) Building with 'Xcode with Clang'. MEX completed successfully. Building with 'Xcode with Clang'. Error using mex /Users/farazmoradi/Downloads/buzcode-master/analysis/spikes/correlation/CCGHeart.c:1:16: warning: '/' within block comment [-Wcomment] / CCGEngine.c / ^ /Users/farazmoradi/Downloads/buzcode-master/analysis/spikes/correlation/CCGHeart.c:2:1: warning: '/' within block comment [-Wcomment] / This is a bare-bones C program whos purpose is to compute ^ /Users/farazmoradi/Downloads/buzcode-master/analysis/spikes/correlation/CCGHeart.c:195:3: error: implicitly declaring library function 'memcpy' with type 'void (void , const void , unsigned long)' [-Werror,-Wimplicit-function-declaration] memcpy(mxGetPr(plhs[1]), (void )Pairs, PairCntsizeof(unsigned int)); ^ /Users/farazmoradi/Downloads/buzcode-master/analysis/spikes/correlation/CCGHeart.c:195:3: note: include the header or explicitly provide a declaration for 'memcpy' 2 warnings and 1 error generated.

Error in compileBuzcode (line 37) mex -O CCGHeart.c

farazmoradi commented 3 years ago

I think I have installed a C compiler

rhuszar commented 3 years ago

what happens if you run "mex CCGHeart.c" ?

farazmoradi commented 3 years ago

When i open it in matlab there is no Run option on the top to run the code.

On Tue, Jun 1, 2021 at 7:05 PM rhuszar @.***> wrote:

what happens if you run "mex CCGHeart.c" ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/410#issuecomment-852177196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3S4UXAN5LA6YEZQXDA5ZTTQTV2PANCNFSM452TI5IA .

dlevenstein commented 3 years ago

Try typing "mex CCGHeart.c" in the command line

dlevenstein commented 3 years ago

Worst case scenario, you can comment out compiling CCGHeart? This will just prevent you from using any of the CCG-related functions in the repository.

farazmoradi commented 3 years ago

Thanks Dan. I have Commented '' mex -O CCGHeart.c '' in the code and the problem is solved. But by commenting on this line, will I have any issue for running the codes and tutorials in the Lab? Is CCGHear.c something essential?

On Wed, Jun 2, 2021 at 10:04 PM Dan Levenstein @.***> wrote:

Worst case scenario, you can comment out compiling CCGHeart? This will just prevent you from using any of the CCG-related functions in the repository.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/410#issuecomment-853245748, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3S4UWMQYK4EBXQSGB74JTTQZTRLANCNFSM452TI5IA .

brendonw1 commented 3 years ago

CCGHeart allows generation of cross correlations between the spikes of pairs of neurons (or other phenomena). Do you anticipate using such functionality?

On Thu, Jun 3, 2021 at 2:06 AM farazmoradi @.***> wrote:

Thanks Dan. I have Commented '' mex -O CCGHeart.c '' in the code and the problem is solved. But by commenting on this line, will I have any issue for running the codes and tutorials in the Lab? Is CCGHear.c something essential?

On Wed, Jun 2, 2021 at 10:04 PM Dan Levenstein @.***> wrote:

Worst case scenario, you can comment out compiling CCGHeart? This will just prevent you from using any of the CCG-related functions in the repository.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/buzsakilab/buzcode/issues/410#issuecomment-853245748 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AO3S4UWMQYK4EBXQSGB74JTTQZTRLANCNFSM452TI5IA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/410#issuecomment-853592735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA26WTLHBBHKMCLI7RUBFZLTQ4LVZANCNFSM452TI5IA .

farazmoradi commented 3 years ago

As I am just starting to work on tutorials I don't think I will need this.

On Thu, Jun 3, 2021 at 3:19 PM Brendon Watson @.***> wrote:

CCGHeart allows generation of cross correlations between the spikes of pairs of neurons (or other phenomena). Do you anticipate using such functionality?

On Thu, Jun 3, 2021 at 2:06 AM farazmoradi @.***> wrote:

Thanks Dan. I have Commented '' mex -O CCGHeart.c '' in the code and the problem is solved. But by commenting on this line, will I have any issue for running the codes and tutorials in the Lab? Is CCGHear.c something essential?

On Wed, Jun 2, 2021 at 10:04 PM Dan Levenstein @.***> wrote:

Worst case scenario, you can comment out compiling CCGHeart? This will just prevent you from using any of the CCG-related functions in the repository.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/buzsakilab/buzcode/issues/410#issuecomment-853245748 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AO3S4UWMQYK4EBXQSGB74JTTQZTRLANCNFSM452TI5IA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/buzsakilab/buzcode/issues/410#issuecomment-853592735 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AA26WTLHBBHKMCLI7RUBFZLTQ4LVZANCNFSM452TI5IA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/410#issuecomment-853777199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3S4URE7XZK7WY7KIDAUS3TQ5M4LANCNFSM452TI5IA .