redgalaxy 发表于 2010-2-23 13:39

fatal error: could not open source file "是怎么回事?

----------------------------DSP2812.pjt - Debug----------------------------
"C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Mywork/DSP2812/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../Mywork/DSP2812/Debug.lkf" "DSP281x_DefaultIsr.c"
"DSP281x_DefaultIsr.c", line 14: fatal error: could not open source file "DSP281x_Device.h"
1 fatal error detected in the compilation of "DSP281x_DefaultIsr.c".
Compilation terminated.
>> Compilation failure
"C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Mywork/DSP2812/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../Mywork/DSP2812/Debug.lkf" "DSP281x_PieCtrl.c"
"DSP281x_PieCtrl.c", line 15: fatal error: could not open source file "DSP281x_Device.h"
1 fatal error detected in the compilation of "DSP281x_PieCtrl.c".
Compilation terminated.
>> Compilation failure
"C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Mywork/DSP2812/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../Mywork/DSP2812/Debug.lkf" "DSP281x_PieVect.c"
"DSP281x_PieVect.c", line 14: fatal error: could not open source file "DSP281x_Device.h"
1 fatal error detected in the compilation of "DSP281x_PieVect.c".
Compilation terminated.
>> Compilation failure
"C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Mywork/DSP2812/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../Mywork/DSP2812/Debug.lkf" "DSP281x_SysCtrl.c"
"DSP281x_SysCtrl.c", line 18: fatal error: could not open source file "DSP281x_Device.h"
1 fatal error detected in the compilation of "DSP281x_SysCtrl.c".
Compilation terminated.
>> Compilation failure
"C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Mywork/DSP2812/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../Mywork/DSP2812/Debug.lkf" "Example_281xFlash.c"
"Example_281xFlash.c", line 73: fatal error: could not open source file "DSP281x_Device.h"
1 fatal error detected in the compilation of "Example_281xFlash.c".
Compilation terminated.
>> Compilation failure
"C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Mywork/DSP2812/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../Mywork/DSP2812/Debug.lkf" "DSP281x_GlobalVariableDefs.c"
"DSP281x_GlobalVariableDefs.c", line 14: fatal error: could not open source file "DSP281x_Device.h"
1 fatal error detected in the compilation of "DSP281x_GlobalVariableDefs.c".
Compilation terminated.
>> Compilation failure
全是fatal error: could not open source file "DSP281x_Device.h",而DSP281x_Device.h这个文件我已经加进去了,请各位前辈给指点一下!

xiaoxu_79 发表于 2010-2-23 14:33

路径不对吧!仔细看看!

redgalaxy 发表于 2010-2-24 15:45

谢谢,把路径添加到bulid options中的compiler 中的include 就可以了!

xiaoxu_79 发表于 2010-3-30 13:11

恭喜!!

www.jwdz.com.cn

lujun414 发表于 2010-11-27 22:46

楼主我今天也遇到你同样的问题了,不知道怎么解决,能告诉我详细的解决方法吗,谢谢啦!

天空云 发表于 2013-5-11 10:49

谢谢楼主,我遇到同样的问题,用楼主的 方法解决了。

zhangmangui 发表于 2013-5-11 23:48

天空云 发表于 2013-5-11 10:49 static/image/common/back.gif
谢谢楼主,我遇到同样的问题,用楼主的 方法解决了。

21ic神奇的功能

不敢再帅点 发表于 2013-11-19 17:22

楼主我今天也遇到你同样的问题了,不知道怎么解决,能告诉我详细的解决方法吗,谢谢啦!

xuexidsp 发表于 2013-11-20 14:25

人家都三年没上了。。。。。

zhangmangui 发表于 2013-11-20 21:50

不敢再帅点 发表于 2013-11-19 17:22 static/image/common/back.gif
楼主我今天也遇到你同样的问题了,不知道怎么解决,能告诉我详细的解决方法吗,谢谢啦! ...

把路径添加到bulid options中的compiler 中的include 就可以了!

欢迎新人

Bestend 发表于 2014-1-9 22:04

zhangmangui 发表于 2013-11-20 21:50 static/image/common/back.gif
把路径添加到bulid options中的compiler 中的include 就可以了!

欢迎新人

你好,请问可以说详细一点吗?怎么添加路径呢?

Bestend 发表于 2014-1-9 22:06

zhangmangui 发表于 2013-11-20 21:50 static/image/common/back.gif
把路径添加到bulid options中的compiler 中的include 就可以了!

欢迎新人

我用CCS4.2编译CCS3.3的工程,结果出现了这几个错误,请问怎么解决呢?

zhangmangui 发表于 2014-1-10 09:39

Bestend 发表于 2014-1-9 22:06 static/image/common/back.gif
我用CCS4.2编译CCS3.3的工程,结果出现了这几个错误,请问怎么解决呢?

你在ccs3.3这边编译对不对啊
我是了   3.3编译的工程可以导入并编译的

Bestend 发表于 2014-1-10 09:47

zhangmangui 发表于 2014-1-10 09:39 static/image/common/back.gif
你在ccs3.3这边编译对不对啊
我是了   3.3编译的工程可以导入并编译的

3.3编译是没问题的。我使用的是合众达的例程。根据网上的教程把3.3工程转移到4.2但是又不行。

wang112411 发表于 2014-1-13 15:24

Bestend 发表于 2014-1-10 09:47 static/image/common/back.gif
3.3编译是没问题的。我使用的是合众达的例程。根据网上的教程把3.3工程转移到4.2但是又不行。 ...

编译OPTION设置,

wyh201309 发表于 2014-3-14 20:05

跪求以上楼主解决方案????Description        Resource        Path        Location        Type
could not open source file "PeripheralHeaderIncludes.h"        Commros_user.c        /GUI_project        line 1        C/C++ Problem

xuer250 发表于 2014-12-2 16:12

zhangmangui 发表于 2013-11-20 21:50 static/image/common/back.gif
把路径添加到bulid options中的compiler 中的include 就可以了!

欢迎新人

compiler中没有include额···我也遇到同样问题

zhangmangui 发表于 2014-12-2 18:01

xuer250 发表于 2014-12-2 16:12 static/image/common/back.gif
compiler中没有include额···我也遇到同样问题

你直接把库添加到工程下试了吗

xuer250 发表于 2014-12-3 15:44

zhangmangui 发表于 2014-12-2 18:01 static/image/common/back.gif
你直接把库添加到工程下试了吗

路径不对已经更改,成功了,谢谢啦

zhangmangui 发表于 2014-12-3 22:56

xuer250 发表于 2014-12-3 15:44 static/image/common/back.gif
路径不对已经更改,成功了,谢谢啦

恩   解决了就好
相关问题还望能详细分享解决方法
页: [1] 2
查看完整版本: fatal error: could not open source file "是怎么回事?