求助: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 comentarios

Walter Roberson
Walter Roberson el 22 de Mzo. de 2016
Is your vc 2012 the professional version or the express version?
ilanzhang
ilanzhang el 24 de Sept. de 2016
Is there something different between professional version with other version?
Walter Roberson
Walter Roberson el 24 de Sept. de 2016
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Mzo. de 2016

Comentada:

el 24 de Sept. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by