unable to link mex compiler with visual studio 2013

3 ビュー (過去 30 日間)
David
David 2014 年 3 月 24 日
コメント済み: Friedrich 2014 年 3 月 31 日
I am running Win 7 pro with matlab R2011b. I am having a problem getting a compiler selected when I run mex -setup. I have visual studio 2013 installed on my machine. If I try to use the option to let mex locate an installed compiler, I get the following: Error using mex (line 206) Unable to complete successfully.
If I try to manually select a compiler, I get the following:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker)
[2] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker)
[3] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[4] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker)
[5] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker)
[6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker)
[7] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[8] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)
[9] Microsoft Software Development Kit (SDK) 7.1
[10] Microsoft Visual C++ 2005 SP1
[11] Microsoft Visual C++ 2008 SP1
[12] Microsoft Visual C++ 2010
[13] Microsoft Visual C++ 2010 Express
[0] None
Compiler:
I don't see an option to select visual studio 2013. Can you please advise how to link visual studio 2013 compiler as the compiler that mex uses?
Thanks,
David

採用された回答

Friedrich
Friedrich 2014 年 3 月 24 日
Hi,
each MATLAB release has a set of compilers which it supports. In your case R2011b does not support Visual Studio 2013. A list of supported compiler can be found here.
  2 件のコメント
David
David 2014 年 3 月 24 日
Thanks Freiedrich! How do I utilize the built in lcc-win32 v2.4.1? When I run mex -setup, I don't see an option to set the default compiler as the lcc. Thanks David
Friedrich
Friedrich 2014 年 3 月 31 日
The LCC comes with a 32bit MATLAB only. The LCC is not available for a 64bit MATLAB.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTroubleshooting in MATLAB Compiler SDK についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by