mex -g

11 visualizaciones (últimos 30 días)
Natalia
Natalia el 24 de Mzo. de 2011
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.

Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 24 de Mzo. de 2011
It looks like you modified csfunc.c and add a main() function - note that S-functions cannot have a main() entry point.
  1 comentario
Natalia
Natalia el 24 de Mzo. de 2011
Ou! Thank you :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by