link error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,099件の閲覧回数
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 解決策
537件の閲覧回数
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 返答(返信)
538件の閲覧回数
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 件の賞賛
返信
537件の閲覧回数
dashz84
Contributor I
thanks.
0 件の賞賛
返信