Problem of linker in HC12

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

Problem of linker in HC12

3,563件の閲覧回数
pilou007
Contributor I

Hi,

I'm a beginner in embedded system and I work on MM912J637, wich heart is a HC12.

Using code warrior to develop my program, I got trouble saying:

Link error : L1822: symbol _FSFLOAT in file......Fonction.c.o is undefined

Link error : L1822: symbol _FCMP in file......Fonction.c.o is undefined

Link error : L1822: symbol _FSTRUNC in file......Fonction.c.o is undefined

Link error : L1822: symbol _FSUB in file......Fonction.c.o is undefined

 

I got seven of these. And I for sure have the #include <hidef.h>.

 

I also have some warning like: ...LotOfFile.c.o has no DWARF debug info...

 

Could you help?

Thanks

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

2,001件の閲覧回数
kef
Specialist I

Mentioned symbols are floating point runtime routines. You should start new project wizard again and specify that you want floating point enabled.

0 件の賞賛
返信

2,001件の閲覧回数
pilou007
Contributor I

Hello,

Thanks for your answer.

I'va had some floating point operation, but I took them off everywhere in my program, now I only have some division on integer32, is that the problem?

How could I do some operation like division on integer without floating point?

Best regards

0 件の賞賛
返信

2,001件の閲覧回数
kef
Specialist I

Disassemble your code and look for symbol in question, like _FSFLOAT or _FDIV. You should find that your code still is using floating point routines. Integer division runtime is always enabled and uses different set of routines.

0 件の賞賛
返信

2,001件の閲覧回数
pilou007
Contributor I

Hy,

I've found the problem, I've found two float definition variablehidden in my program, despite a search wich told me no float anymore....

Everything'ok now

Thank you very much

Pascal

0 件の賞賛
返信