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
已解决! 转到解答。
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
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.
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
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