TI中文支持网
TI专业的中文技术问题搜集分享网站

CCS5.3 build project 错误 (不能打开。h文件) DM365

我用CCS5.3调试demo程序,源代码是spectrum digital 提供的用于DM365板子开发和演示。我在建立一个project和安装好环境及设置后,试图build project时出现一个奇怪的错误。一个名叫EVMDM365_i2c.h的文件在编译的时候总是打不开,编译无法通过。检查该.h文件的路径和名字没有发现错误。试了好几天也没有发现原因。感谢那位高手可以帮我解答这个问题!

错误信息如下:

**** Build of configuration Debug for project steven_test ****

/home/davinci/ti/ccsv5/utils/bin/gmake -k allBuilding file: ../evmdm365.c
Invoking: ARM Compiler
"/home/davinci/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv5e –code_state=32 –abi=ti_arm9_abi -me -g –include_path="/home/davinci/ti/ccsv5/tools/compiler/arm_5.0.1/include" –define=dm350 –define=dm365 –diag_warning=225 –display_error_number –diag_wrap=off –preproc_with_compile –preproc_dependency="evmdm365.pp"  "../evmdm365.c"
"../evmdm365_eeprom.h", line 18: fatal error #5: could not open source file "EVMDM365_i2c.h"

>> Compilation failure
Building file: ../evmdm365_eeprom.c
Invoking: ARM Compiler
"/home/davinci/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv5e –code_state=32 –abi=ti_arm9_abi -me -g –include_path="/home/davinci/ti/ccsv5/tools/compiler/arm_5.0.1/include" –define=dm350 –define=dm365 –diag_warning=225 –display_error_number –diag_wrap=off –preproc_with_compile –preproc_dependency="evmdm365_eeprom.pp"  "../evmdm365_eeprom.c"
1 fatal error detected in the compilation of "../evmdm365.c".
Compilation terminated.
gmake: *** [evmdm365.obj] Error 1
"../evmdm365_eeprom.h", line 18: fatal error #5: could not open source file "EVMDM365_i2c.h"

>> Compilation failure
1 fatal error detected in the compilation of "../evmdm365_eeprom.c".
Compilation terminated.
gmake: *** [evmdm365_eeprom.obj] Error 1
Building file: ../evmdm365_i2c.c
Invoking: ARM Compiler
"/home/davinci/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv5e –code_state=32 –abi=ti_arm9_abi -me -g –include_path="/home/davinci/ti/ccsv5/tools/compiler/arm_5.0.1/include" –define=dm350 –define=dm365 –diag_warning=225 –display_error_number –diag_wrap=off –preproc_with_compile –preproc_dependency="evmdm365_i2c.pp"  "../evmdm365_i2c.c"
"../evmdm365_eeprom.h", line 18: fatal error #5: could not open source file "EVMDM365_i2c.h"
1 fatal error detected in the compilation of "../evmdm365_i2c.c".
Compilation terminated.
gmake: *** [evmdm365_i2c.obj] Error 1
gmake: Target `all' not remade because of errors.

>> Compilation failure

**** Build Finished ****

Shine:

试试直接在include#里指定.h的绝对路径

Steven Wang1:

回复 Shine:

谢谢,Shine Zhang。 我在#include里指定了.h 的绝对路径,并确认文件名的正确,在指定的路径里找到该.h文件,同时也确定该.h文件的permission。可是还是一样的错误信息。郁闷!

Shine:

回复 Steven Wang1:

方便的话, 把程序发上来, 或者发个简单的测试程序也可以

赞(0)
未经允许不得转载:TI中文支持网 » CCS5.3 build project 错误 (不能打开。h文件) DM365
分享到: 更多 (0)