C++ 使用mex时出错:找不到支持的编译器或SDK
尽管我通过键入C++ 使用mex时出错:找不到支持的编译器或SDK,c++,matlab,visual-studio,compiler-errors,mex,C++,Matlab,Visual Studio,Compiler Errors,Mex,尽管我通过键入mex-setup得到以下消息: >> mex -setup MEX configured to use 'Microsoft Visual C++ 2013 Professional (C)' for C language compilation. Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elemen
mex-setup
得到以下消息:
>> mex -setup
MEX configured to use 'Microsoft Visual C++ 2013 Professional (C)' for C language compilation.
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/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
当我想编译某个.cpp
文件时,我得到以下错误:
>> mex -g mx_minimum_power.cpp cvm_em64t_debug.lib
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2015a/win64.html.
<>编译>代码> CPP 文件使用C++编译器(<代码> .c/COD>文件使用C编译器)。 使用<代码> MEX -设置C++ ++代码,用于建立C++编译器。p>
显然,在使用
mex
指令时,源文件扩展名确实很重要编译>代码> CPP 文件使用C++编译器。使用<代码> MEX -设置C++ ++代码,用于建立C++编译器。我已经用过很多次了,要么你没有一个受支持的编译器,要么你有一个bug,你需要联系mathworks。99%确定这是第一次one@Rotem我现在正在另一个系统上使用它。那是几天前的事了。不管怎样,尽管我第一次发表评论,你的解决方案还是奏效了。是否要将其添加为答案?