| mohammad 2005-04-21, 4:03 pm |
| HI,
I am facing Little problem while using the ML7.0.4.
It is giving ne following error.
Error using ==> RTW.makertw.make_rtw
Error using ==> rtw\private\issue_inv_comp_env_val_error
Invalid setting for environment variable MSDevDir or DevEnvDir.
The setting is: 'c:\program files\microsoft visual studio '
You can verify the setting by checking for the existence of:
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 7.0)
%MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0)
%MSDevDir%\..\vc\bin\vcvars32.bat (for Visual C/C++ 5.0)
You must define MSDevDir or DevEnvDir to be:
set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++
7.0)
set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++
6.0)
set %MSDevDir%=<VisualRoot>\sharedide (for Visual C/C++
5.0)
This error may be due to an invalid preference file:
C:\Documents and Settings\mahmad\Application
Data\MathWorks\MATLAB\R14\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct
To correct this eoor i tried with the following ways[color=darkred]
Please choose your compiler for building external interface (MEX)
files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Borland C++Builder version 6.0
[2] Borland C++Builder version 5.0
[3] Borland C++Builder version 4.0
[4] Borland C++Builder version 3.0
[5] Borland C/C++ version 5.02
[6] Borland C/C++ version 5.0
[7] Borland C/C++ (free command line tools) version 5.5
[8] Compaq Visual Fortran version 6.1
[9] Compaq Visual Fortran version 6.6
[10] Digital Visual Fortran version 6.0
[11] Digital Visual Fortran version 5.0
[12] Lcc C version 2.4
[13] Microsoft Visual C/C++ version 7.0
[14] Microsoft Visual C/C++ version 7.1
[15] Microsoft Visual C/C++ version 6.0
[16] Microsoft Visual C/C++ version 5.0
[17] Open WATCOM C/C++ version 1.3
[18] WATCOM C/C++ version 11
[19] WATCOM C/C++ version 10.6
[0] None
Compiler: 14
Your machine has a Microsoft Visual C/C++ compiler located at
C:\Program Files\Microsoft Visual Studio .NET 2003. Do you want to
use this compiler [y]/n? y
Please verify your choices:
Compiler: Microsoft Visual C/C++ 7.1
Location: C:\Program Files\Microsoft Visual Studio .NET 2003
Are these correct?([y]/n): y
Try to update options file: C:\Documents and
Settings\mahmad\Application Data\MathWorks\MATLAB\R14\mexopts.bat
From template:
C:\MATLAB704\BIN\WIN32\mexopts\msvc71opt
s.bat
Done . . .
as well with obtion also.
[color=darkred]
Please choose your compiler for building external interface (MEX)
files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft
Visual Studio
[2] Lcc C version 2.4 in C:\MATLAB704\sys\lcc
[3] Microsoft Visual C/C++ version 7.1 in C:\Program Files\Microsoft
Visual Studio .NET 2003
[4] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft
Visual Studio
[0] None
Compiler: 4
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct?([y]/n): y
Try to update options file: C:\Documents and
Settings\mahmad\Application Data\MathWorks\MATLAB\R14\mexopts.bat
From template:
C:\MATLAB704\BIN\WIN32\mexopts\msvc60opt
s.bat
Done . . .
and this also[color=darkred]
Please choose your compiler for building external interface (MEX)
files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft
Visual Studio
[2] Lcc C version 2.4 in C:\MATLAB704\sys\lcc
[3] Microsoft Visual C/C++ version 7.1 in C:\Program Files\Microsoft
Visual Studio .NET 2003
[4] Microsoft Visual C/C++ version 6.0 in C:\Progra
|