现在的位置: 首页 > 综合 > 正文

libsvm 在make时出错 Undefined function or variable ‘make’.

2013年10月16日 ⁄ 综合 ⁄ 共 812字 ⁄ 字号 评论关闭

先附上设置过程
   step1: 输入>>mex -setup
   step2:
   Please choose your compiler for building external interface (MEX) files: 
   Would you like mex to locate installed compilers [y]/n?        是否让matlab自动检测编译器 可以选y
   step3:
     Select a compiler: 
     [1] Lcc-win32 C 2.4.1 in E:\PROGRA~1\MATLAB\R2010a\sys\lcc 
     [2] Microsoft Visual C++ 2008 SP1 in e:\Program Files\Microsoft Visual Studio 9.0 
     [3] Microsoft Visual C++ 6.0 in E:\Program Files\Microsoft Visual Studio 
     [0] None 
     [1]matlab 自带的不能用 其他的如果有的话 就相应的选择就行  
     我选择了 【2】
    step4:
     Compiler: Microsoft Visual C++ 2008 SP1  
      Location: e:\Program Files\Microsoft Visual Studio 9.0 
      Are these correct [y]/n?  路径是否正确 是的就选y 
      如果没有自动检测出来依次的话step2就选【n】就可以,再顺着提示下来。

如果在make时出现错误Undefined function or variable 'make'

解决方法为:

设置matlab的path 
   方法file->set path->set sub path(为什么要sub path因为只有这样才能将你要加的文件目录的子文件都加进去,否则只是加了你所要加的那个目录。)

还要记得把current folder 设为matlab所在的路径

抱歉!评论已关闭.