L1822 Error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

L1822 Error

1,618件の閲覧回数
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,023件の閲覧回数
JimDon
Senior Contributor III

You missing the floating point library.

0 件の賞賛
返信

1,023件の閲覧回数
Idontunderstand
Contributor I

Thanks Jim.

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

 

0 件の賞賛
返信

1,023件の閲覧回数
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,023件の閲覧回数
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,023件の閲覧回数
Idontunderstand
Contributor I

Thank Jim and Kev, it worked:smileyhappy:

0 件の賞賛
返信