After using
mex -setup
to set up the compiler path, the path setting in XPCEXPLR is not updated. It remains set on the default 'c:\microsoft visual studio'.
When I building my model, I get the following error:
Error using ==> rtw\private\issue_inv_comp_env_val_error Invalid setting for environment variable MSDevDir or DevEnvDir. the setting is: 'c:\microsoft visual studio' You can verify the setting by checking for the existence of: %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 7.1)
%MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0)
You must define MSDevDir or DevEnvDir to be: set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 7.1)
set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0)
This error may be due to an invalid preference file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2006a\mexopts.bat Please run "mex -setup" at the MATLAB prompt to correct.
The options file is correct, only the path in xPC Explorer is wrong. This message can safely be ignored.
Best Answer