Using mex for c++ file

I am trying to use mex to compile .cpp file but i got some problem. I do like below : I set up mex :
and use mex
i hope that everybody can help fix this problem.Thanks in advance!

Respuestas (1)

James Tursa
James Tursa el 4 de Sept. de 2013

0 votos

LCC is a C compiler, not a C++ compiler. You need to select option 3 above (MIcrosoft Visual C/C++) to compile cpp files.

1 comentario

KAKA DOAN
KAKA DOAN el 4 de Sept. de 2013
Thank you for this answer if i do like this

Iniciar sesión para comentar.

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.

Preguntada:

el 4 de Sept. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by