CCS3.3 编译 test.c文件定义函数A();
在main.c文件中调用函数A(),函数A为在此文件中外部声明,即没有extern int A();
问题:编译时,没有报错(error),只是报警告(waring),请问如何让编译器报错在这种情况下?
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.
您好!
在Code generation Tools V6.0版本中使用-pdew会将warning作为error处理。我试了一下在CGT V5下面不支持-pdew选项。
不知道您的CGT为什么版本的?
您可以升级一下CCS V3.3的编译器,升级步骤如下:
1、help->About...
2、点击进入Component Manager,如下图所示:

3、不过您可能需要下载一个CGT 6.1.0. 可以通过升级CCS3.3来升级。另外最简单的办法就是,安装一个CCS5.2自带了CGT6.1.0,直接升级V3.3即可。
4、升级完成后,右击工程,选择build options。如下图所示,添加-pdew

5、点击OK。最后我的warning变成了error
