matlab 编译提示NMAKE : fatal error U1073: don't know how to make 'C:\Program' Stop.?

1.matlba2009b,编译器VC++6.0,欲编译生成simulink的xpc目标模型,提示错误:

NMAKE : fatal error U1073: don't know how to make 'C:\Program'
Stop.

C:\Users\lqy\Desktop\esc-100test\testlqylqy_xpc_rtw>echo The make command returned an error of 2

The make command returned an error of 2

C:\Users\lqy\Desktop\esc-100test\testlqylqy_xpc_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

2.先装的VC,后装的matlab,尝试多次重装,无法解决,求大神指点

估计是你命令行没有打引号,'C:\Program Files'中间有空格,它给截断了。或者你把VC++和你的程序放在不带空格的路径里。

这种情况,我遇见过,是makefile.txt丢失造成的。重新配置一个makefile.txt问题即可解决。