Error with RealTimeWorkshop Compiler

2 次查看(过去 30 天)
niharika
niharika 2012-8-17
I am trying to generate the C code from simulink, but i am stuck with an error which is stopping the generation of C code. The error is :
Error using ==> issue_inv_comp_env_val_error at 9
"Invalid setting for environment variable MSDevDir or DevEnvDir. The setting is: '' You can verify the setting by checking for the existence of: %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 9.0) %MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0) %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 8.0)
You must define MSDevDir or DevEnvDir to be: set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 9.0) set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0) set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 8.0)
This error may be due to an invalid preference file: C:\Dokumente und Einstellungen\FGLuser\Anwendungsdaten\MathWorks\MATLAB\R2010b\mexopts.bat Please run "mex -setup" at the MATLAB prompt to correct"
I tried creating the mex -setup at matlab prompt but could not solve my problem... I am not understading why this problem exists... Can any one help me in solving this. Thanks in advance for reply..
  7 个评论
niharika
niharika 2012-8-21
I don't have R2010b installed... I only have R2007b... I don't have any environment variable called MATLAB_Prefdir.
niharika
niharika 2012-9-7
Can anyone let me know if there is any solution for this. Thanks in advance.

请先登录,再进行评论。

回答(1 个)

Sachin Ganjare
Sachin Ganjare 2012-9-12
You will need to verify mexopts.bat file manually to check whether correct paths are enetered by running 'mex -setup' command

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by