L1822, L4021, L1822

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

L1822, L4021, L1822

Jump to solution
1,881 Views
JanellA
Contributor I
I am using CodeWarrior HC08 V5.1, and I'm creating code for the MC1321x NCB. I created my current project by important an XML file created by BeeKit (GenericApp). I need to be using floating point integers.

When I try to compile my code the linking fails
L1822 "Symbol _FSTRUNC. . . is undefined"

Per the recommendation of the lib/hc08c/lib/readme.txt and the advice of prior posts on this board, I replaced ansiis.lib with ansif.lib .

Now compiling the code results in several different errors:
L4021 on several counts "Incompatible derivate: HCS08 in previous files with CPU08 in current file. . . ."
L1822 informing that the following are undefined: _IMUL_STAR08, _CALL_STAR08, _IMODU_STAR08, _IDVIU_STAR08, and _IDIVS_STAR08

Can anyone reccomend a course of action to create a happy, compiling, linking project which includes floating point integers?


Thanks,

Janell
Labels (1)
Tags (1)
0 Kudos
1 Solution
523 Views
CompilerGuru
NXP Employee
NXP Employee
The error message is actually quite good, use ansifs.lib (and not ansif.lib) for a S08.
 Check the readme again, it lists the libraries for the S08 and the HC08 separately.

Daniel

View solution in original post

0 Kudos
2 Replies
524 Views
CompilerGuru
NXP Employee
NXP Employee
The error message is actually quite good, use ansifs.lib (and not ansif.lib) for a S08.
 Check the readme again, it lists the libraries for the S08 and the HC08 separately.

Daniel
0 Kudos
523 Views
JanellA
Contributor I
Ohhhhhhhhhhhhh. I didn't understand that. Now I do!

Thank you!


0 Kudos