How I setup Visual studio 2010 Express in Matlab 2013b (32bit)
이전 댓글 표시
Hi,
I would compile some *.c files (used in Simulink function calls) with Visual Studio 2010 Express with Matlab 2013 b (32 bit) currently installed on my pc.
My system is configured as:
- Operating System: Windows 7 - SP1
- Matlab 2013 b (32 bit)
- Visual Studio 2010 C++ Express
However I cannot see in mex -setup option the "Visual Studio 2010" compiler, and so I cannot compile with mex and Visual Studio.
What can I do to add or point Visual studio to mex preferences? Any suggestions?
Thanks in advance,
Alberto
답변 (2개)
Geoff Hayes
2014년 11월 14일
0 개 추천
Alberto - according to 2013b supported and compatible compilers, Visual Studio 2010 Express is not a supported compiler so I don't think that you can do anything to trick mex in to providing it as an option.
I suggest that you try to download and install Microsoft Windows SDK 7.1. I did the same for R2014a on 32-bit Windows.
댓글 수: 3
Geoff Hayes
2014년 11월 15일
Aberto's answer moved here
I supposed that Visual Studio 2010 Express and Visual Studio 2010 Professional are the same in terms of compiling libraries and functionalities used in mex. Or not?
Is it sufficient to install Microsoft Windows SDK 7.1 for having Visual Studio Compiler in mex ? Or I need also the Visual Studio 2010 C++ package?
Should I install the Microsoft Windows SDK 7.1 x86 for Matlab 32 bit version? or also the SDK 7.1 x64 version is compatible with Matlab 32 bit version?
Thanks.
Geoff Hayes
2014년 11월 15일
You need only install the Microsoft Windows SDK 7.1 (with .NET Framework 4.0).
What is your Windows 7 - 32-bit or 64-bit? Either way, you will probably need to download the version of the SDK that is compatible/suitable for your OS.
As for compiling libraries in 2010 Express and 2010 Professional, I have no idea if they are the same.
AlbCalloni
2014년 11월 15일
hanssar
2014년 11월 15일
0 개 추천
There is a bug with Win SDK 7.1 and VS2010 Express. Maybe this helps you: http://www.mathworks.com/matlabcentral/answers/96611-how-do-i-install-microsoft-visual-c-2010-and-microsoft-windows-sdk-7-1
댓글 수: 2
Aishwarya Selvaraj
2015년 10월 27일
Hi everyone, I use windows 8.1 version (64bit )and matlab 2014a(64bit). And i want to use the mex file . Could anyone please tell me which other software (including version)has to be downloaded Kindly reply thank you :)
Geoff Hayes
2015년 10월 27일
See http://www.mathworks.com/support/compilers/R2014a/index.html for details on the supported compilers for R2014a given your OS.
카테고리
도움말 센터 및 File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!