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.

CCS3.3自建库文件的引用问题



你好!

我用CCS5.5封装的库,然后在CCS3.3PLA中引用,有如下问题。

我库工程包含一个头文件controlfunction.h,一个C文件controlfunction.c,函数和变量都在头文件中定义,用的是全局定义,如

extern float THE_Ua;
extern unsigned int Com_or,sheng=0;

在CCS5.5中用debug编译库文件没有问题,成功生成了.lib文件。

然后我再CCS3.3的一个工程中,添加了该库,并且在build option中也进行了添加,在文件中include了controlfunction.h,结果编译时,报错,说其中有的变量是重复定义,有的变量报出没定义。

请问是什么原因?