music0215 发表于 2010-6-2 09:00

MATLAB直接生成代码错误提示

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: ''
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)
应该是编译器的问题 我安装了VC++2005 输入mex-setup但是选项里没有VC 请教大侠
Select a compiler:
Lcc C version 2.4 in D:\MATLAB7\sys\lcc

None

yuhan6502 发表于 2010-7-3 12:15

支持加油
页: [1]
查看完整版本: MATLAB直接生成代码错误提示