L1822, L4021, L1822

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

L1822, L4021, L1822

跳至解决方案
2,105 次查看
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
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
747 次查看
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 项奖励
回复
2 回复数
748 次查看
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 项奖励
回复
747 次查看
JanellA
Contributor I
Ohhhhhhhhhhhhh. I didn't understand that. Now I do!

Thank you!


0 项奖励
回复