Salamo3alaykom,
If you're using Matlab R2010a on Win7, you're probably getting an issue with the C++ compiler using mex command.
So to overcome this issue you have to get a compatible compiler installed, you can check all the compatible C++ compilers here.
I had the Visual Studio 2008 installed and thenin the matlab command window I run the msbuild command to set-up the C/ C++ compiler to be used with MATLAB.
So, you shoulget something like this:
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 2008 SP1 in C:\Program Files\Microsoft Visual Studio 9.0
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 SP1
Location: C:\Program Files\Microsoft Visual Studio 9.0
Are these correct [y]/n? y
****************************************************************************
Warning: Applications/components generated using Microsoft Visual Studio
2008 require that the Microsoft Visual Studio 2008 run-time
libraries be available on the computer used for deployment.
To redistribute your applications/components, be sure that the
deployment machine has these run-time libraries.
****************************************************************************
Trying to update options file: C:\Users\bouchratoune\AppData\Roaming\MathWorks\MATLAB\R2010a\compopts.bat
From template: C:\MATLAB\R2010a\bin\win32\mbuildopts\msvc90compp.bat
Done . . .
I hope that was helpful, and good luck with Matlab :D
If you're using Matlab R2010a on Win7, you're probably getting an issue with the C++ compiler using mex command.
So to overcome this issue you have to get a compatible compiler installed, you can check all the compatible C++ compilers here.
I had the Visual Studio 2008 installed and thenin the matlab command window I run the msbuild command to set-up the C/ C++ compiler to be used with MATLAB.
So, you shoulget something like this:
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 2008 SP1 in C:\Program Files\Microsoft Visual Studio 9.0
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 SP1
Location: C:\Program Files\Microsoft Visual Studio 9.0
Are these correct [y]/n? y
****************************************************************************
Warning: Applications/components generated using Microsoft Visual Studio
2008 require that the Microsoft Visual Studio 2008 run-time
libraries be available on the computer used for deployment.
To redistribute your applications/components, be sure that the
deployment machine has these run-time libraries.
****************************************************************************
Trying to update options file: C:\Users\bouchratoune\AppData\Roaming\MathWorks\MATLAB\R2010a\compopts.bat
From template: C:\MATLAB\R2010a\bin\win32\mbuildopts\msvc90compp.bat
Done . . .
I hope that was helpful, and good luck with Matlab :D
0 commentaires:
Enregistrer un commentaire