×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Problem compiling c file to mexw32

Problem compiling c file to mexw32

Problem compiling c file to mexw32

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources