24小时热门版块排行榜    

查看: 481  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 估计是周四 +3 archvillain 2026-08-18 3/150 2026-08-21 01:48 by jnhyjjm
[基金申请] 基金啊基金 +3 longfie172 2026-08-20 3/150 2026-08-21 00:04 by wuchongjun
[基金申请] 科研孤儿太难了 +14 我4大白菜 2026-08-20 15/750 2026-08-20 22:33 by 袁向阳007
[基金申请] 让我中一个面上吧! +8 大萍1987 2026-08-20 10/500 2026-08-20 21:48 by 大萍1987
[基金申请] 言之凿凿,明天官网会通知放榜? +15 医学老男孩 2026-08-20 17/850 2026-08-20 20:35 by CaoLG
[基金申请] 时间戳又变了 +12 wuchongjun 2026-08-20 17/850 2026-08-20 20:05 by spzhao
[基金申请] 放榜前的不淡定 40+3 snowwithsea 2026-08-19 12/600 2026-08-20 15:56 by lfy8008
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[基金申请] 今天基金会出结果吗?20260819 +14 kkkl_v 2026-08-19 15/750 2026-08-20 08:21 by sunzitan
[基金申请] filecode,4个jtjc了 +11 ziyangfang 2026-08-19 13/650 2026-08-19 21:28 by aasahr
[基金申请] 今天放榜没戏了吧 +4 yuleib84 2026-08-19 5/250 2026-08-19 19:52 by hhs666
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] filecode=后面第一个是大写字母 +10 wangze12014 2026-08-14 12/600 2026-08-19 16:56 by 苦难博士
[基金申请] 2027广东省杰青 +4 奶牛小黑 2026-08-15 10/500 2026-08-19 11:02 by wanfengnew
[基金申请] 朋友圈看到的 +6 wangzilk 2026-08-18 8/400 2026-08-19 10:55 by Haru815
[基金申请] 什么时候开奖? +6 CrisMessi 2026-08-18 6/300 2026-08-19 08:06 by Equinoxhua
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[基金申请] 时间戳又变了8-15 +14 archvillain 2026-08-15 26/1300 2026-08-18 13:37 by phantomgost
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 93BebMhtakh前后11位开头都是大写 +4 且听虎啸 2026-08-17 5/250 2026-08-18 00:49 by 蔡棒棒菂
信息提示
请填处理意见