ERROR L1934: ELF: Cannot open C:/Freescale/SF35 MP16/lib

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

ERROR L1934: ELF: Cannot open C:/Freescale/SF35 MP16/lib

2,127 Views
renzhe1998
Contributor I

各位大牛:

     我最近在用codewarrior11.0编译一个工程时遇到一个问题,编译的时候报错无法打开LIB文件,我在path里面已经添加了lib文件的信息,同样的工程文件用codewarrior5.9.0就可以正常编译通过,请各位大牛帮忙看看是什么问题,谢谢!

pastedImage_1.png

pastedImage_4.png

pastedImage_5.png

pastedImage_6.png

pastedImage_7.png

0 Kudos
Reply
5 Replies

1,873 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

If the lib was not build and generated under CW11, it can't work for CW11. So your problem is normal.

You need port your lib project to CW11 to generate a new lib file. then use this lib for your CW11 project.


Have a great day,
Jun Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,873 Views
renzhe1998
Contributor I

Hi Jennie,非常感谢你的回复,我这两天试了一下,还是没有搞定,我的这个工程中用到了两个LIB文件,9S08Lib.lib和ansii.lib, 这两个文件我目前没有办法打开,我也不知道怎么通过CW11.0生成这两个文件,这两个文件是之前的工程师留下来的,我是刚接手,所以不太会操作,能否帮忙生成这两个文件让我可以在CW11.0上编译通过,或者有详细的生成lib文件的教程分享一下更好,谢谢!

pastedImage_1.png

0 Kudos
Reply

1,873 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Tom.

ansiis.lib is system lib file, you can find it under C:\Freescale\CW MCU v11.0\MCU\lib\hc08c\lib

9S08Lib.lib is not a system lib name. It should be produced by users or other 3rd party.

You need get the source project from the the person who developed 9S08Lib.lib. then create a s08 library project. import your lib code to your project one by one.

you can find how to create a library project in CW11 help. search with key word "creating S08 library project"

pastedImage_1.png


Have a great day,
Jun Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,873 Views
renzhe1998
Contributor I

Hi Jennie

        我找到问题的原因了,在设置path的时候我没有设置对,应该将文件名完整的添加到path中,我之前只添加到了LIB文件的上一级目录,菜鸟总归是菜鸟,要犯低级错误的。

        谢谢您的快速回复。

0 Kudos
Reply

1,873 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

you are welcome. Thanks for the sharing.

Jennie Zhang

0 Kudos
Reply