Code Warrior for Coldfire V2 Floating Point Linker Errors
‎02-07-2006
05:03 PM
3,492 Views
dvona
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 Reply
‎02-16-2006
12:09 AM
1,262 Views
CompilerGuru
NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.