The CodeWarrior IDE version is 5.9.0.
Even if 'math.h' is included, the Link error still appears, while there is no problem with compiling.
First please check your compiler floating point setup:
If you don't require double precision floating point I'd recommend you to select "SPFP_Only" option since it generate most efficient SPFP code.
Next step is to add proper standard libraries (MSL + Runtime) that match with floating point option selected.
e.g.for VLE project,where char = unsigned char, and SPFP_Only floating point selected:
Use this runtime library:
"<CW for MPC55xx and MPC56xx 2.10>\PowerPC_EABI_Support\Runtime\Lib\Runtime.PPCEABI.V.SP.UC.a"
And this MSL library:
"<CW for MPC55xx and MPC56xx 2.10>\PowerPC_EABI_Support\MSL\MSL_C\PPC_EABI\Lib\MSL_C.PPCEABI.bare.V.SP.UC.a"
For more information about the libraries available please see the Build tools reference manual:
"<CW for MPC55xx and MPC56xx 2.10>\Help\PDF\Power Architecture Build Tools Reference.pdf", sections "Choosing an MSL Library", "Choosing a Runtime Library".
Hope it helps.
Could you tell us which MCU are you using?
Thanks in advance!
Best Regards,Carlos MendozaTechnical Support Engineer
It's working fine now. Thank you very much.
Retrieving data ...