HCS12 L1822 Linker errors FDEC, FCMP and FINC

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

HCS12 L1822 Linker errors FDEC, FCMP and FINC

2,170 次查看
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,005 次查看
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,005 次查看
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 项奖励
回复