dsp 编译错误及解决方法.doc
文本预览下载声明
dsp--ccs部分错误及解决
1,ERRORmultiple sections with name PAGE0
解决PAGE 0 中间有个空格隔开。
2ERROR MEMORY specification ignored
解决书写格式错误
3 ERROR:zero or missing length for memory area SPRAM
SPRAM: origin=0x0060H, 解决书写格式错误
4WARNING: entry point other than _c_int00 specified
解决,在“TMS320C6000优化汇编手册”第五章“链接C/C++代
令人生厌的 multiple definition of
我把所有的全局变量写在一个global.h里然后其他文件都include 了它 于是出现了 multiple definition of 编译器 gcc ) 后来在网上搜到了很多类似的错误大家各有各的烦心事。我的代码结构
main.cpp
#include global.h
WinMain()
...
}
file_1.cpp
#include global.h
file_2.cpp
#include global.h
...
由于工程中的每个文件都是独立的解释的即使头文件有
#ifndef _x_h
#enfif )
在其他文件中只要包含了global.h 就会独立的解释,然后生成每个文件生成独立的标示符。在编译器连接时,就会将工程中所有的符号整合在一起,由于文件中有重名变量,于是就出现了重复定义的错误。
下面是解决方法
在global.c或.cpp) 中声明变量然后建一个头文件global.h 在所有的变量声明前加上extern ... 如 extern HANDLE ghEvent; 注意这儿不要有变量的初始化语句。然后在其他需要使用全局变量的 cpp文件中包含.h 文件而不要包含 .cpp 文件。编译器会为global.cpp 生成目标文件然后连接时在使用全局变量的文件中就会连接到此文件 。 在其他文件中只要包含了global.h 就会独立的解释,然后生成每个文件生成独立的标示符。在编译器连接时就会将工程中所有的符号整合在一起,由于文件中有重名变量,于是就出现了重复定义的错误。
cant open file /.obj for input 是什么原因引起的?
cmd文件中有不合法的符号比如“//”等
1fatal error: #error NO CHIP DEFINED 详细的出错信息:
-g -q -fre:/project_documents/dsp_project/dsp_mp3/Debug -d_DEBUG -@Debug.lkf ...c
..., line 141: fatal error: #error NO CHIP DEFINED 1 fatal error detected in the compilation of ...c.
在Build Options 的compiler里设置-dCHIP_..如果没有设置一下
2QI have started to study the book Digital Signal Processing and Applications with the C6713 and C6416 DSK (by Rulph Chassaing, 2005). I am working with a C6713DSK, using CCS 3.1. But when I try to run the first example (sine8_LED) in Rulph Chassaings book on the C6713 Device Cycle Accurate Simulator, I get the following error messages: Trouble running Target CPU: Memory Map Error: READ access by CPU to address 0x1b7c100, which is RESERVED in Hardware. Trouble running Target CPU: Memory Map Error: WRITE access by Default to address 0x1b7c100, which is RESERVED in Hardware.
AGenerally this type of err
显示全部