11-19-2004 10:56 AM
11-19-2004 01:13 PM
02-05-2006 09:50 AM
Hello Brandon, I was getting the same error before upgrading to 2.0.3. Thanks for those suggestions. Now, however, I'm getting this new error and I was hoping you might know how to fix it:
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\common\msdev98'
You can verify the setting by checking for the existence of:
%MSDevDir%\..\vc\bin\vcvars32.bat (for Visual C/C++ 5.0)
%MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0)
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 7.0)
You must define MSDevDir or DevEnvDir to be:
set %MSDevDir%=<VisualRoot>\sharedide (for Visual C/C++ 5.0)
set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0)
set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 7.0)
This error may be due to an invalid preference file:
C:\Documents and Settings\Sima Azar\Application Data\MathWorks\MATLAB\R14\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct
I have Visual Studio 6 installed, but I didn't install Visual C/C++ with it, just InterDev. I tried "mex -setup" and it showed 3 different compilers. One of them was Matlab's LCC and the other was Visual C/C++. I tried them both just for the sake of it, but I get that same error. Do you know what this could be from?
Thanks,
Sima
02-06-2006 07:08 AM
04-25-2006 07:00 PM
Hi Brandon,
I have a similar problem, too. Before I upgrade to SIT2.0.3, the error message was "Indices may not be negative".
The code can now successfully compiled until the linking stage. A new problem shows up in the last part:
Error using ==> RTW.makertw.make_rtw
Error using ==> rtw_c
### Unable to find build success string: "*** Created" in build log.
The c compiler I choose is Visual Studio. NET 2003. Could you give me some suggestions please?
Shawn
P.S BTW, I compile this model using other tlc files in the matlab and they are all succeeded.
04-25-2006 08:22 PM
04-26-2006 06:59 PM
Hi Shawn,
The Kb linked below gives more information. You may have already seen this but hope it helps!
Can I Use MS Visual C++.NET (7.x) To Build DLLs Using the Real-Time Workshop for NI Real-Time Targets: http://digital.ni.com/public.nsf/websearch/5F3B544A7FB806E886256F6A005D3F5B?OpenDocument
Regards,
Prashanth