Include a .lib file in a CW 10.2 libmaker project

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

Include a .lib file in a CW 10.2 libmaker project

1,184 Views
marcoporzio
Contributor I

Hello guys,

 

I need an help on CodeWarrior 10.2.

I have an old project with a HCS08 microcontroller (MC9S08DZ60) made with CodeWarrior 6.3. In this project I create a library that includes some .c and .h files, obviously, and the ansiis.lib.

 

Now I have to migrate the project in the CodeWarrior 10.2 and I must have full compatibility: hence, I have to create a .lib that can be also used in old existing project compiled using CW 6.3.

In CW 10.2, first of all I tried to used the "CodeWarrior classic project importer", but I cannot compile it without error: it say to me that the main is not defined in the startup file.

So I created a new project using the same .c and .h files and I able to compile it. Only that I can not include the ansiis.lib. I imported the project "hc08_lib", that contains ansi library, and I referenced the "hcs08_c_no_float" project that generates the ansiis.lib.

However, when I build my project.lib file, it does not contains the ansiis.lib.

How I make it possible? I found the method to make this in S08 linker options, but not in a libmaker project.

 

Thanks in advance at all that will help me.

 

Bye! 

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

925 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Marco.

I suggest you check MCU_Build_Tools_Utilities.pdf under CW10 install, "Libmaker Utility","Libmaker Interface" for how to add a library in libmaker.

Hope this helps!


Have a great day,
Zhang Jun

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

925 Views
marcoporzio
Contributor I

Hi Zhang,

First of all thank you for your answer.

I followed your suggestion. I found some interesting things that I previously missed.

However my issue was not solved: I tried to follow the manual but or I compiled the project without error, but without that ansi.lib was included ignoring my command, or I had an error ("mingw32-make: ***").

It seems that .lib files can not be included in another library.

0 Kudos
Reply