flospb
2010-02-23, 19:59
在64位系统上,安装了支持64系统的MatlabR2009a和Visual Studio2008(都是英文版的),需要用mex命令编译几个c文件,先运行mex -setup,选择y,只出现了Visual Studio2008对应的编译器,但是没有lcc编译器(在32位系统上同样的配置时是有的,在64位系统上如果运行mex -setup选择n也无法加载到我另行安装的支持64系统的lcc编译器,不知道怎么设置路径)。于是只能选择Visual Studio2008的编译器编译,运行mex mex_a.c出错,出错信息为:
Error:Could not find the compiler “cl” on the DOS path.
Use mex -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL:Error:Unable to locate compiler.
请问这是什么问题?怎么解决?在论坛里找到类似问题,但却是有lcc编译器没有vc编译器的情况。
我尝试把cl.exe加载到环境变量里也无法解决问题。
在线等,谢谢!
Error:Could not find the compiler “cl” on the DOS path.
Use mex -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL:Error:Unable to locate compiler.
请问这是什么问题?怎么解决?在论坛里找到类似问题,但却是有lcc编译器没有vc编译器的情况。
我尝试把cl.exe加载到环境变量里也无法解决问题。
在线等,谢谢!