RobynC
Aerospace
- Jul 23, 2007
- 13
Hi. I'm trying to upgrade a simulator for 6.5.1 to 2007b (7.1?) and to do this I need to recompile all the .dll files to make them .mexw32 files.
I am starting off with a matlab m file.
I then use the command
mcc -l csma.m (csma.m is the file name)
to convert the file into c,
I am then using the command mex csma.c (file produced in the last command) which I believe should output the .mexw32 file I need.
However the mex command is failing with the errors
Error CSAM_MANAGER.C 57 undefined reference to _mclWrite
Error CSAM_MANAGER.C 98 undefined reference to _mclmcrInitialize
Error CSAM_MANAGER.C 100 undefined reference to ___MCC_csam_component_data
Error CSAM_MANAGER.C 100 undefined reference to _mclInitializeComponentInstance
Error CSAM_MANAGER.C 119 undefined reference to _mclTerminateInstance
Error CSAM_MANAGER.C 126 undefined reference to _mclGetStackTrace
Error CSAM_MANAGER.C 133 undefined reference to _mclFreeStackTrace
Error CSAM_MANAGER.C 141 undefined reference to _mclFeval
Error CSAM_MANAGER.C 148 undefined reference to _mclMlfFeval
Specified export _mexFunction is not defined
Missing exports. Aborting
C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of 'csam_manager.mexw32' failed.
??? Error using ==> mex at 208
Unable to complete successfully.
I was wondering if anyone knows what I'm doing wrong? I'm faily new to Matlab so sorry if the terminology is a bit pants and if you need any more information I will try and provide it.
I am starting off with a matlab m file.
I then use the command
mcc -l csma.m (csma.m is the file name)
to convert the file into c,
I am then using the command mex csma.c (file produced in the last command) which I believe should output the .mexw32 file I need.
However the mex command is failing with the errors
Error CSAM_MANAGER.C 57 undefined reference to _mclWrite
Error CSAM_MANAGER.C 98 undefined reference to _mclmcrInitialize
Error CSAM_MANAGER.C 100 undefined reference to ___MCC_csam_component_data
Error CSAM_MANAGER.C 100 undefined reference to _mclInitializeComponentInstance
Error CSAM_MANAGER.C 119 undefined reference to _mclTerminateInstance
Error CSAM_MANAGER.C 126 undefined reference to _mclGetStackTrace
Error CSAM_MANAGER.C 133 undefined reference to _mclFreeStackTrace
Error CSAM_MANAGER.C 141 undefined reference to _mclFeval
Error CSAM_MANAGER.C 148 undefined reference to _mclMlfFeval
Specified export _mexFunction is not defined
Missing exports. Aborting
C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of 'csam_manager.mexw32' failed.
??? Error using ==> mex at 208
Unable to complete successfully.
I was wondering if anyone knows what I'm doing wrong? I'm faily new to Matlab so sorry if the terminology is a bit pants and if you need any more information I will try and provide it.