Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

LIBSVM

Asked by Jac Billington on 11 Jul 2011

I'm trying to get Libsvm up and running on my PC (windows XP, sp3, 32-bit).

When I run mex setup I get the following.

" mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? y Select a compiler: [1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB~1\R2009b\sys\lcc [0] None Compiler: 1 Please verify your choices: Compiler: Lcc-win32 C 2.4.1 Location: C:\PROGRA~1\MATLAB~1\R2009b\sys\lcc Are these correct [y]/n?

this seems to run but then when I try to run make.m I get the following error.

"??? Error using ==> mex at 221 Unable to complete successfully.

Error in ==> make at 5 mex -O -largeArrayDims -I..\ -c ..\svm.cpp"

Can anyone please give me some advice on getting this working, I'm going in circles trying to follow forum threads on this topic.

Many thanks, Jac

0 Comments

Jac Billington

Tags

Products

No products are associated with this question.

1 Answer

Answer by Friedrich on 11 Jul 2011

Hi,

the LCC is a C compiler but like the file extension suggest you are trying to compile C++ code. Please install a supported C++ Compiler and try again.

1 Comment

Jac Billington on 11 Jul 2011

hi,

thanks for responding so quickly. I downloaded Microsoft Visual C++ 2010 Express and installed this. It's still saying my compiler is " Lcc-win32 C 2.4.1", and not working. I got that from here http://www.mathworks.com/support/compilers/R2011a/win32.html.

I'm running mex -setup adding the following path

"addpath('C:\Program Files\MATLAB2009\R2009b\extern\examples\mex')"

is this where I'm going wrong?

Thank you again. J

Friedrich

Contact us