Code Warrior for Coldfire V2 Floating Point Linker Errors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Code Warrior for Coldfire V2 Floating Point Linker Errors

3,321 次查看
dvona
Contributor II
Greetings,
 
I am working with the MCF5213EVB and trying to use floating point (libraries, obviously because there is no FP unit in a V2).
 
When I try to do so, I get the following linker errors that I don't understand.
 
Undefined: "_d_flt"
Undefined: "_f_fgt"
Undefined: "_f_ftod"
 
The _f_fgt seems to indicate that I can't do a floating point greater than compare.  The other's I am not sure about.
 
Any thoughts or clues as to what is going on?  My understanding was that if you try to do floating point operations in a V2 Coldfire, code warrior would link in the floating point libraries, but if I can't do compares (greater than, leass than etc), I'm not sure if they are complete.
 
Regards,
_Dan
标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,091 次查看
CompilerGuru
NXP Employee
NXP Employee
Well, the compiler is calling some runtime routines to perform the floating point math, but the linker does not find those routines. The linker does not magically add libraries, you have to add the rigth ones to your project. Check the targeting Coldfire manual for how the library names are encoded.
0 项奖励
回复