<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Dear Fieldtrip community,</div><div><br></div><div>I am trying to compile the MEX files using "ft_compile_mex(true)“ on my Mac as described here: <a href="https://www.fieldtriptoolbox.org/faq/compile/">https://www.fieldtriptoolbox.org/faq/compile/</a>. I also already removed all MEX files from the quarantine (<a href="https://www.fieldtriptoolbox.org/faq/mexmaci64_cannot_be_opened_because_the_developer_cannot_be_verified/">https://www.fieldtriptoolbox.org/faq/mexmaci64_cannot_be_opened_because_the_developer_cannot_be_verified/</a>).</div><div><br></div><div>However, after the ft_compile_mex function ran for a while, I get these errors. Does anybody know what they mean?</div><div><br></div><div><div>Error using ft_compile_mex>compile_mex_list</div><div>Error using mex</div><div>PATH_TO_FIELDTRIP/src/mxSerialize_cpp.cpp:10:1: error: unknown type name</div><div>'EXTERN_C'</div><div>EXTERN_C mxArray* mxSerialize(mxArray const *);</div><div>^</div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">PATH_TO_FIELDTRIP</span>/src/mxSerialize_cpp.cpp:10:17: error: expected ';' after</div><div>top level declarator</div><div>EXTERN_C mxArray* mxSerialize(mxArray const *);</div><div>                ^</div><div>                ;</div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">PATH_TO_FIELDTRIP</span>/src/mxSerialize_cpp.cpp:11:1: error: unknown type name</div><div>'EXTERN_C'</div><div>EXTERN_C mxArray* mxDeserialize(const void *, size_t);</div><div>^</div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">PATH_TO_FIELDTRIP</span>/src/mxSerialize_cpp.cpp:11:17: error: expected ';' after</div><div>top level declarator</div><div>EXTERN_C mxArray* mxDeserialize(const void *, size_t);</div><div>                ^</div><div>                ;</div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">PATH_TO_FIELDTRIP</span>/src/mxSerialize_cpp.cpp:22:31: error: use of undeclared</div><div>identifier 'mxSerialize'</div><div>        plhs[0] = (mxArray *) mxSerialize(prhs[0]);</div><div>                              ^</div><div>5 errors generated.</div><div><br></div><div><br></div><div>Error in ft_compile_mex (line 114)</div><div>  compile_mex_list(L, ftpath, force);</div></div><div><br></div><div>Kind regards,</div><div>Sebastian</div></body></html>