HCS12 L1822 Linker errors FDEC, FCMP and FINC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HCS12 L1822 Linker errors FDEC, FCMP and FINC

1,541 Views
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
Labels (1)
0 Kudos
2 Replies

376 Views
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 Kudos

376 Views
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 Kudos