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?
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.
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.