Unable to configure mex to use Visual C++ 2008 express edition under Matlab R2012b (win32)

1 vue (au cours des 30 derniers jours)
Hello
I'm trying to configure matlab to use Visual C++ 2008 Express Edition with the command mex -setup. Prerequisites:
  • SO: Windows 7
  • Matlab Version installed: R2012b (win32 version)
  • Compiler Installed: Visual C++ 2008 Express Edition
  • SDK Installed: v6.1
  • MSSdk environmental variable properly configured.
when executing mex -setup the following output is given
>> mex -setup
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012b/win32.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~2\MATLAB\R2012b\sys\lcc
[2] Microsoft Visual C++ 2008 Express Edition in C:\Program Files (x86)\Microsoft Visual Studio 9.0
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 Express Edition
Location: C:\Program Files (x86)\Microsoft Visual Studio 9.0
Are these correct [y]/n? y
***************************************************************************
Warning: MEX-files generated using Microsoft Visual C++ 2008 Express
Edition require that Microsoft Visual Studio 2008 run-time
libraries be available on the computer they are run on.
If you plan to redistribute your MEX-files to other MATLAB
users, be sure that they have the run-time libraries.
You can find more information about this at:
http://www.mathworks.com/support/solutions/data/1-2223MW.html
***************************************************************************
C:\Program Files (x86)\Microsoft Visual Studio 9.0
Error using mex (line 206)
Unable to complete successfully.
I have uninstalled and re-installed matlab/vc++/sdk several times. The same configuration is working on another pc. Has anyone had this problem before?
thank you very much!

Réponses (1)

Marek C.
Marek C. le 5 Avr 2018
Hello, I'm facing to similar trouble right now. Is someone here with successful way to solve that issue? Thanks Marek

Catégories

En savoir plus sur C Shared Library Integration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by