24小时热门版块排行榜    

查看: 508  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[公派出国] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 Xoz0hXWi9tT1 2026-11-21 4/200 2026-11-22 03:46 by mNjrFMLoQVIW
[基金申请] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 Xoz0hXWi9tT1 2026-11-21 4/200 2026-11-22 03:45 by mNjrFMLoQVIW
[论文投稿] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 Xoz0hXWi9tT1 2026-11-21 6/300 2026-11-22 03:45 by mNjrFMLoQVIW
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 Xoz0hXWi9tT1 2026-11-21 5/250 2026-11-22 03:34 by mNjrFMLoQVIW
[硕博家园] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 Xoz0hXWi9tT1 2026-11-20 4/200 2026-11-22 03:23 by mNjrFMLoQVIW
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 Xoz0hXWi9tT1 2026-11-20 6/300 2026-11-22 03:13 by mNjrFMLoQVIW
[公派出国] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 YLsF7OSIoYU4 2026-11-21 4/200 2026-11-21 23:53 by TxdNP2oT1Q0A
[基金申请] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 YLsF7OSIoYU4 2026-11-21 3/150 2026-11-21 23:43 by TxdNP2oT1Q0A
[论文投稿] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 Xoz0hXWi9tT1 2026-11-21 4/200 2026-11-21 23:31 by TxdNP2oT1Q0A
[硕博家园] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 Xoz0hXWi9tT1 2026-11-21 3/150 2026-11-21 23:21 by TxdNP2oT1Q0A
[考研] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +3 Xoz0hXWi9tT1 2026-11-20 4/200 2026-11-21 22:48 by TxdNP2oT1Q0A
[考博] 27材料申博求捞 10+3 Cosima1 2026-11-16 6/300 2026-11-21 18:27 by tfang
[材料综合] 憎水剂,表面活性剂 20+3 tan19990622 2026-11-19 3/150 2026-11-21 18:24 by tfang
[论文投稿] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 YLsF7OSIoYU4 2026-11-21 3/150 2026-11-21 16:11 by Gt0XhENGW3Q3
[教师之家] 为了不被淘汰,必须要开始第三次奋斗了 +10 lice_1987 2026-11-15 13/650 2026-11-21 10:41 by 异形杀手
[考博] 申博 +4 权@@ 2026-11-19 7/350 2026-11-20 20:53 by 行稳致远11
[教师之家] 征友后感触 +7 重新启 2026-11-17 9/450 2026-11-20 17:06 by 爱唠叨的小木虫
[论文投稿] 食品与机械 编辑C处理稿子时间 10+3 奇妙001 2026-11-19 4/200 2026-11-20 15:02 by tfang
[基金申请] 注意啦!用基金购买打印纸、硒鼓、优盘、移动硬盘、个人计算机属于违规了 +3 iaeyuan 2026-11-17 4/200 2026-11-20 09:36 by iaeyuan
[论文投稿] IVD领域内综述投稿推荐 100+3 小小筑梦 2026-11-16 5/250 2026-11-19 17:03 by hansi2025
信息提示
请填处理意见