- Change directory to fieldtrip, delete all Mex files in the
src/
directory - Edit
src/ft_getopt.c
and replace anymxErrMsgTxt
tomexErrMsgTxt
(notice the 'mex' instead of 'mx') - Rename
mxSerialize.c
tomxSerialize.cpp
(same formxDeserialize
) - Edit those files, and replace the prototype declarations to:
// MX_API_VER has unfortunately not changed between R2013b and R2014a,
// so we use the new MATRIX_DLL_EXPORT_SYM as an ugly hack instead
#if defined(__cplusplus) && defined(MATRIX_DLL_EXPORT_SYM)
namespace matrix{ namespace detail{ namespace noninlined{ namespace mx_array_api{