This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

使用CCS7对msp430编程时修改了一些设置以后总是报错

错误信息:

Description Resource Path Location Type
make: *** 空变量名。 停止。 sources.mk /msp430_ku/Debug line 45 C/C++ Problem

  • 你好,能说下你修改了什么设置吗?

    修改优化选项了吗?有可能被优化掉了。

  • 我本是想寻找生成.o文件的方法, 就参考下面这段话将-eood -fr"$(proj_dir)\Debug\debug_obj"分别复制到工程属性的build -> Steps -> Post -build-steps和

    advanced options-->default file extension中试了一下,还修改过new ccs project -->advanced setting-->out type。发现报错以后,我全都改回来了还是不行。

    在CCS中,如何将C源文件编译成库文件,调用库代替调用C文件
        库文件的后缀是任意的,但一般以.o或者.l为库后缀的起始,如:.o64, .lib, .l64等。
        若要将某个C文件生成库文件,右键单击文件属性,选择"full options",在编译选项中加入-eo(后缀) -fr"$(proj_dir)\Debug\debug_obj", 比如使用-eood -fr"$(proj_dir)\Debug\debug_obj", 和使用-eo-od -fr"$(proj_dir)\Debug\debug_obj"是一样的

  • 报错文件如下:

    第45行报错

  • 报错文件sources.mk:

    第45行报错,之前编译正常的文件没有第45行和第48行