How do i build a library with Codewarrior 10 (eclipse version)?

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

How do i build a library with Codewarrior 10 (eclipse version)?

Jump to solution
2,721 Views
Kaare
Contributor III

Hi,

 

We've changed to the new eclipse based codewarrior 10. However i can't seem to figure out how i should build a library in this version?

 

In the old Codewarrior suite we could make alibrary of lets say math functions and compile them into a .lib file, which we could then include in our other projects.

 

 

How do i do this in Codewarrior 10?

 

Thanks in advance

Kaare

Labels (1)
1 Solution
972 Views
CrasyCat
Specialist III

Hello

 

I assume you are trying to create a library for Coldfire. Right?

 

Just open project properties and go to C/C++ Build > Settings page.

Once you are there, go to Coldfire Linker > Output panel and change Output Type to Static Library.

 

Then change to the Build Artifact tab and change artifact extension to lib or a or whatever you want to use as extension for your library.

 

CrasyCat

View solution in original post

3 Replies
972 Views
Kaare
Contributor III

No one who knows how to make a simple library?

 

I think what i'm after is an .a file.

 

I tried changing output type for the linker from application to 'static library'. However that just creates an .elf file.

 

 

It's incredible how freescale just launches a new development IDE with almost no available help at all!! Theres nothing in the help files that describes this procedure.

0 Kudos
Reply
973 Views
CrasyCat
Specialist III

Hello

 

I assume you are trying to create a library for Coldfire. Right?

 

Just open project properties and go to C/C++ Build > Settings page.

Once you are there, go to Coldfire Linker > Output panel and change Output Type to Static Library.

 

Then change to the Build Artifact tab and change artifact extension to lib or a or whatever you want to use as extension for your library.

 

CrasyCat

972 Views
Kaare
Contributor III

Hi Crasycat

 

Yes that did the trick, thank you! I also get a response on my support ticket for this issue. There is a pdf guide on their website which shows all the steps required to make a library and how to use it:

 

How to build and use a static library for Coldfire MCU's in CW 10

 

 

Regards,

Kaare Mai

0 Kudos
Reply