HCS12 L1822 Linker errors FDEC, FCMP and FINC

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

HCS12 L1822 Linker errors FDEC, FCMP and FINC

2,169件の閲覧回数
Sinky
Contributor I
Hello.
 
I have written a program that uses the SCI but when i put for loops of while loops into my code i get the following errors:
 
"Link Error: L1822: Symbol_FDEC in file ...main.c.o is undefined"
 
"Link Error: L1822: Symbol_FCMP in file ...main.c.o is undefined"
 
"Link Error: L1822: Symbol_FINC in file ...main.c.o is undefined"
 
Does anyone know what may be causing this?
 
I am using an MC9S12C32 (HCS12)  with codewarrior.
 
Thanks, Sinky
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,004件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee
 This means that you are using floats while linking against the integral only library. If you are only using increments, decrements and compares I would suggest to use int's or long's instead of floats.
Otherwise link against a library supporting floating point.

Daniel

0 件の賞賛
返信

1,004件の閲覧回数
Sinky
Contributor I
Thanks for the help.
 
I had stupidly declared one of my variables as a double which makes no sense in a 16 bit processor. All fixed now.
 
Sinky
0 件の賞賛
返信