求助:matlab2014a与VS 2012混合编程问题 感觉配置了mex环境​,但是编译mex文件​有误,求指导

>> mex -setup MEX 配置为使用 'Microsoft Visual C++ 2012 (C)' 以进行 C 语言编译。 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.
要选择不同的语言,请从以下选项中选择一种命令: mex -setup C++ mex -setup FORTRAN >> mex train.cpp 错误使用 mex 未找到支持的编译器或 SDK。有关选项,请访问 http://www.mathworks.com/support/compilers/R2014a/win32

댓글 수: 3

Walter Roberson
Walter Roberson 2016년 3월 22일
Is your vc 2012 the professional version or the express version?
ilanzhang
ilanzhang 2016년 9월 24일
Is there something different between professional version with other version?
Walter Roberson
Walter Roberson 2016년 9월 24일
R2011b was the last version that supported the Express editions of VS.
I glanced at some documentation a moment ago; the differences I could see did not appear to be important for the situation, so I am not sure how the restriction arises.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

질문:

2016년 3월 22일

댓글:

2016년 9월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by