作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尽管我通过键入 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
文件使用C编译器)。
使用 mex -setup C++
来设置 C++ 编译器。
显然,在使用 mex
指令时,源文件扩展名很重要...
关于c++ - 使用 mex : No supported compiler or SDK was found 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39405276/
我是一名优秀的程序员,十分优秀!