24小时热门版块排行榜    

CyRhmU.jpeg
查看: 396  |  回复: 0

xuruiyu2012

金虫 (初入文坛)

[求助] libsvm安装出错的问题

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 D:\matlab\sys\lcc

[0] None

Compiler: 1

Please verify your choices:

Compiler: Lcc-win32 C 2.4.1
Location: D:\matlab\sys\lcc

Are these correct [y]/n? y

Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2009b\mexopts.bat
From template:              D:\matlab\bin\win32\mexopts\lccopts.bat

Done . . .

**************************************************************************
  Warning: The MATLAB C and Fortran API has changed to support MATLAB
           variables with more than 2^32-1 elements.  In the near future
           you will be required to update your code to utilize the new
           API. You can find more information about this at:
           http://www.mathworks.com/support ... l?solution=1-5C27B9
           Building with the -largeArrayDims option enables the new API.
**************************************************************************

>> make
Error ..\svm.cpp: 15  syntax error; found `<' expecting `;'
Error ..\svm.cpp: 15  skipping `<'
Error ..\svm.cpp: 15  syntax error; found `T' expecting `;'
Error ..\svm.cpp: 15  syntax error; found `>' expecting `;'
Error ..\svm.cpp: 15  skipping `>'
Error ..\svm.cpp: 15  syntax error; found `T' expecting `;'
Error ..\svm.cpp: 15  syntax error; found `min' expecting `;'
Error ..\svm.cpp: 15  syntax error; found `x' expecting `)'
Error ..\svm.cpp: 15  skipping `x' `,' `T' `y'
Error ..\svm.cpp: 15  undeclared identifier `x'
Error ..\svm.cpp: 15  undeclared identifier `y'
Warning ..\svm.cpp: 15   possible usage of x before definition
Warning ..\svm.cpp: 15   possible usage of y before definition
Error ..\svm.cpp: 18  syntax error; found `<' expecting `;'
Error ..\svm.cpp: 18  skipping `<'
Error ..\svm.cpp: 18  syntax error; found `T' expecting `;'
Error ..\svm.cpp: 18  syntax error; found `>' expecting `;'
Error ..\svm.cpp: 18  skipping `>'
Error ..\svm.cpp: 18  syntax error; found `T' expecting `;'
Error ..\svm.cpp: 18  syntax error; found `max' expecting `;'
Error ..\svm.cpp: 18  syntax error; found `x' expecting `)'
Error ..\svm.cpp: 18  skipping `x' `,' `T' `y'
Error ..\svm.cpp: 18  too many errors

  D:\MATLAB\BIN\MEX.PL: Error: Compile of '..\svm.cpp' failed.

If make.m fails, please check README about detailed instructions.

make编译后出现这样的错误,请大神们帮帮忙,本人matlab2009b版本
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 xuruiyu2012 的主题更新
信息提示
请填处理意见