24小时热门版块排行榜    

查看: 423  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 329求调剂 +5 想上学吖吖 2026-03-19 5/250 2026-03-19 23:56 by 23Postgrad
[考研] 一志愿苏州大学材料求调剂,总分315(英一) +3 sbdksD 2026-03-19 3/150 2026-03-19 23:21 by fmesaito
[考研] 0817 化学工程 299分求调剂 有科研经历 有二区文章 +18 rare12345 2026-03-18 18/900 2026-03-19 22:36 by 学员8dgXkO
[考研] 0703化学调剂 ,六级已过,有科研经历 +12 曦熙兮 2026-03-15 12/600 2026-03-19 19:42 by maocaozhuxi
[考研] 一志愿西安交通大学材料工程专业 282分求调剂 +5 枫桥ZL 2026-03-18 7/350 2026-03-19 14:52 by 功夫疯狂
[考研] 287求调剂 +3 晨昏线与星海 2026-03-19 4/200 2026-03-19 12:32 by peike
[考研] 材料专硕英一数二306 +5 z1z2z3879 2026-03-18 5/250 2026-03-19 07:43 by BruceLiu320
[考研] 26调剂/材料/英一数二/总分289/已过A区线 +7 步川酷紫123 2026-03-13 7/350 2026-03-18 17:12 by 尽舜尧1
[考研] 303求调剂 +4 睿08 2026-03-17 6/300 2026-03-18 11:01 by Iveryant
[考研] 0703化学调剂 +3 妮妮ninicgb 2026-03-17 3/150 2026-03-18 10:29 by macy2011
[考研] 326求调剂 +5 上岸的小葡 2026-03-15 6/300 2026-03-17 17:26 by ruiyingmiao
[考研] 材料工程专硕274一志愿211求调剂 +6 薛云鹏 2026-03-15 6/300 2026-03-17 11:05 by 学员h26Tkc
[考研] 304求调剂 +4 ahbd 2026-03-14 4/200 2026-03-16 16:48 by 我的船我的海
[考研] 321求调剂 +5 大米饭! 2026-03-15 5/250 2026-03-16 16:33 by houyaoxu
[考研] 070300化学学硕求调剂 +6 太想进步了0608 2026-03-16 6/300 2026-03-16 16:13 by kykm678
[考研] 326求调剂 +3 mlpqaz03 2026-03-15 3/150 2026-03-16 07:33 by Iveryant
[考研] 330求调剂 +3 ?酱给调剂跪了 2026-03-13 3/150 2026-03-14 10:13 by JourneyLucky
[考研] 266求调剂 +4 学员97LZgn 2026-03-13 4/200 2026-03-14 08:37 by zhukairuo
[考研] 招收0805(材料)调剂 +3 18595523086 2026-03-13 3/150 2026-03-14 00:33 by 123%、
[考研] 070303一志愿西北大学学硕310找调剂 +3 d如愿上岸 2026-03-13 3/150 2026-03-13 10:43 by houyaoxu
信息提示
请填处理意见