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

답변 (1개)

Friedrich
Friedrich 2011년 7월 11일

1 개 추천

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

Jac Billington
Jac Billington 2011년 7월 11일
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

질문:

2011년 7월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by