L1822 Error

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

L1822 Error

1,625 次查看
Idontunderstand
Contributor I

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:

 

 

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. Link Error   : Link failed

    I couldn't find the reason by searching he semiliar questions in the forum. I appreciate any help..

Thanks

标签 (1)
0 项奖励
回复
5 回复数

1,030 次查看
JimDon
Senior Contributor III

You missing the floating point library.

0 项奖励
回复

1,030 次查看
Idontunderstand
Contributor I

Thanks Jim.

Could tell me how should I add it, where is that library located?

 

0 项奖励
回复

1,030 次查看
kef
Specialist I

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"

0 项奖励
回复

1,030 次查看
JimDon
Senior Contributor III

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.

0 项奖励
回复

1,030 次查看
Idontunderstand
Contributor I

Thank Jim and Kev, it worked:smileyhappy:

0 项奖励
回复