link error

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

link error

Jump to solution
2,016 Views
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!
Labels (1)
Tags (1)
0 Kudos
1 Solution
454 Views
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

View solution in original post

0 Kudos
2 Replies
455 Views
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 Kudos
454 Views
dashz84
Contributor I
thanks.
0 Kudos