link error

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

link error

跳至解决方案
2,050 次查看
dashz84
Contributor I
Hi,

i have finished coding my Microcontroller and have compiled the code with a couple of 'possible loss of data' errors, which i knew would exist but have ignored it anyway.
when I tried to enter the debugger mode, i received many Link Errors, L1822. basically all the math symbols, such as pow, sin, cos, tan, as well as FMUL, FSFLOAT, FSUB etc, were said to be unidentifiable.

I have checked the threads,
http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&message.id=4512
and
http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=1914&query.id=5060..., and have removed the -D__NO_FLOAT__ part, but I am still getting the error mesages.

What am I missing? How can I get rid of these error messages?
Your help is much appreciated!
标签 (1)
标记 (1)
0 项奖励
1 解答
488 次查看
CompilerGuru
NXP Employee
NXP Employee
The error messages you see mean that you are linking against the integer only library while using floating point operations.
Removing the -D option does not actually change much. The main change you have to do is to use the proper library, check the {Install}\lib\hc12c\readme.txt and also the threads you mentioned.

Daniel

在原帖中查看解决方案

0 项奖励
2 回复数
489 次查看
CompilerGuru
NXP Employee
NXP Employee
The error messages you see mean that you are linking against the integer only library while using floating point operations.
Removing the -D option does not actually change much. The main change you have to do is to use the proper library, check the {Install}\lib\hc12c\readme.txt and also the threads you mentioned.

Daniel
0 项奖励
488 次查看
dashz84
Contributor I
thanks.
0 项奖励