L1822 Error

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dear;
I am using CSMB12-C128 using codewarrior.
I formated my computer so I forced to install codewarrior again (I installed version 5.9.0 for HCS12 series). Now, I got an error on the code which worked fine before.
The errors are:
- Link Error : L1822: Symbol _FMUL in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o is undefined
- Link Error : L1822: Symbol _FSUB in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o is undefined
- Link Error : L1822: Symbol _FADD in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o is undefined
- Link Error : L1822: Symbol _FUTRUNC in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o is undefined
- Link Error : L1822: Symbol _FSTRUNC in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o is undefined
- Link Error : Link failed
I couldn't find the reason by searching he semiliar questions in the forum. I appreciate any help..
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You missing the floating point library.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jim.
Could tell me how should I add it, where is that library located?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When creating new project, you should tell project wizard that you want floating point. Wizard then adds required library. What library to add is specified in <CW intall folder>\lib\hc12c\readme.txt
BTW, S12 is 16-bit MCU. Please use right forum next time. Keep in mind that there are dedicated Codewarrior forums. This thread should be in "Codewarrior 8- adn 16- bit"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kef gave the answer I would have, because I have not used that version of CW in quite some time. If you fish around in the project settings, there may be something there, other than that you will have to regenerate the project and specifiy floating point.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank Jim and Kev, it worked
