64 bit compiler installation - very frustrating

Hello to all,
I have Matlab R2012b - 64bit and I need to install a x64 compiler in order to run applications which call 64bit DLL functions.
I have installed Microsoft Visual Studio 2008, Microsoft SDK 7.1, .NET 4, MS Visual C++ Redistributable x64 2005, 2008, 2010 and 2012, MS C++ Compilers 2010 Standars x64 and still when I run the mex -setup command Matlab does NOT "see" the x64 compilers, as shown below:
Select a compiler:
[1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0
[2] Microsoft Visual C++ 2008 SP1 in C:\Program Files (x86)\Microsoft Visual Studio 9.0
Reading other posts did not do any good, I have the same problem over and over again. Looks like you have to have a PhD in computer science to figure this one out.
Can anybody give me a hint about how can I solve this problem?
Best regards,
Jean

5 commentaires

Looks like Microsoft SDK 7.1 with .NET Framework 4.0 should be sufficient as per this page. Did you run the compiler installations in Admin mode? If you didn't, perhaps the installer did not set up the system PATH variable correctly?
Walter Roberson
Walter Roberson le 26 Fév 2013
People have been having difficulty installing the compilers because of a bug in Microsoft's packaging of the compilers. There is a particular order that needs to be used, but I do not recall what it is; it has been discussed in the past.
Jean
Jean le 28 Fév 2013
I have installed .NET 4.0, SDK 7.1 in admin mode and no result. I have noticed that the mex -setup command searches the x64 compiler in the Program Files (x86) FOLDER !!!! I think it is not a Microsoft problem, but a Matlab one.
Justin
Justin le 24 Juil 2013
Hi Jean,
Where you ever able to resolve this issue? I am experiencing a similar hang-up now with compiling a DLL using 'LoadLibrary'. Same display when I initiate 'mex -setup' and my files will not compile and generate an enormous error output. Let me know.
Thanks, Justin
dpb
dpb le 24 Juil 2013
I've generally just made a make file that compiles/links to the proper ML libraries and uses the include file directories.
All setup really does is obfuscate that setting of INCLUDE and LIB directives behind an excessively complex script. :(

Connectez-vous pour commenter.

Réponses (1)

jianlin wang
jianlin wang le 21 Oct 2016

0 votes

Hi Jean,
Where you ever able to resolve this issue? I am experiencing a similar hang-up now with compiling a DLL using 'LoadLibrary'. Same display when I initiate 'mex -setup' and my files will not compile and generate an enormous error output. Let me know.
Thanks, WangJianLin

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by