mex -g

조회 수: 15 (최근 30일)
Natalia
Natalia 2011년 3월 24일
Hello! I try to do mex -g csfunc.c. What can cause this error? I will be grateful for any answer, thanks.
>> mex -g csfunc.c
Writing library for csfunc.mexw32
c:\users\98af~1\appdata\local\temp\mex_oi0yso\csfunc.obj: multiple definition of _main
first definition is in file c:\program files\matlab\r2010b\sys\lcc\lib\libcrt0.obj
sighandler.obj .text: undefined reference to '__CurrentContext'
C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Link of 'csfunc.mexw32' failed.
??? Error using ==> mex at 208
Unable to complete successfully.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 3월 24일
It looks like you modified csfunc.c and add a main() function - note that S-functions cannot have a main() entry point.
  댓글 수: 1
Natalia
Natalia 2011년 3월 24일
Ou! Thank you :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by