Skip to content

Error during compilation in Osx 11.0 #21

@soreno123

Description

@soreno123

Hello,
When trying to compile with MatLab r2020a and 11.0 i get this error:

Error using mex
[cboulay snipped out warnings]
/Users/soren/bci/liblsl-Matlab/bin/../mex/lsl_pull_chunk_d.c:99:13: error: implicitly declaring library function
'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
memcpy(chunkptr,(*cur)->buffer,sizeof(double)*numchannels);
^
/Users/soren/bci/liblsl-Matlab/bin/../mex/lsl_pull_chunk_d.c:99:13: note: include the header <string.h> or explicitly
provide a declaration for 'memcpy'
5 warnings and 1 error generated.

Error in build_mex (line 31)
mex('-I../../liblsl/include','-L.', libs{:}, ['../mex/', f.name]);

I'm using latest version of Xcode (12.3) and the lib-lsl is liblsl.1.14.0.dylib compiled by myself.
Any Hint?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions