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.

CCS6.1 中添加快速浮点库后sqrt函数编译报重复定义

Other Parts Discussed in Thread: CONTROLSUITE

如果不用快速浮点库没有问题,添加rts2800_fpu32_fast_supplement.lib后就出错,已经设置好两个浮点库的连接顺序,相应的头文件都是TI提供的源文件,没有任何修改。具体报错信息如下:

error #10056: symbol "_sqrt" redefined: first defined in "<whole-program>"; redefined in "../lib/rts2800_fpu32_fast_supplement.lib<sqrt_f32.obj>"

如果将快速浮点库中的sqrt函数去掉重新生成新的快速库就没有问题了,但是这样一来sqrt函数就只能用普通库中的了。

原来用ccs3.3的时候没有这个问题,不知道6.1版本为什么会出现这样的问题