L1822, L4021, L1822

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,107件の閲覧回数
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 解決策
749件の閲覧回数
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 返答(返信)
750件の閲覧回数
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 件の賞賛
返信
749件の閲覧回数
JanellA
Contributor I
Ohhhhhhhhhhhhh. I didn't understand that. Now I do!

Thank you!


0 件の賞賛
返信