Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using mex to compile a .cpp file

1,092 views
Skip to first unread message

Javensius

unread,
Mar 16, 2008, 11:52:05 PM3/16/08
to

Dear all,

I have problem in compiling the *.cpp file to *.dll using
the mex command in Matlab.
The error message is displayed as follows:
=======================================================
Error: Could not detect a compiler on local system
which can compile the specified input file(s) at
C:\MATLAB~1\bin\/mexsetup.pm line 586.
??? Error using ==> mex at 206
Unable to complete successfully.
=======================================================

But I already set the compiler in Matlab ( Lcc-win32 C 2.4.1
in C:\MATLAB~1\sys\lcc).

Is there any suggestion?
I'll appreciate it.


Regard,


Javensius Sembiring

James Tursa

unread,
Mar 17, 2008, 4:50:28 AM3/17/08
to
"Javensius " <javen...@gmail.com> wrote in message
<frkpt5$79e$1...@fred.mathworks.com>...

lcc is a C compiler, not a C++ compiler. You will have to
run mex -setup again and select a C++ compiler.

James Tursa

min...@googlemail.com

unread,
Feb 21, 2013, 8:28:15 AM2/21/13
to Javensius
Dear all

I am currently using windows8 and I downloaded Microsoft Windows SDK 7.1 however still having a same problem.
==============================================================
No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012a/win64.html
==============================================
How can I correct this error?

Best regards,

Minsuk Lee

israfilb...@gmail.com

unread,
Jun 7, 2014, 3:40:41 PM6/7/14
to
You should run 'mex -setup' command on Matlab.
0 new messages