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!

Antworten (1)

James Tursa
James Tursa am 4 Sep. 2013

0 Stimmen

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 Kommentar

KAKA DOAN
KAKA DOAN am 4 Sep. 2013
Thank you for this answer if i do like this

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 4 Sep. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by