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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,770 次查看
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

标签 (1)
1 解答
1,021 次查看
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

在原帖中查看解决方案

3 回复数
1,021 次查看
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 项奖励
回复
1,022 次查看
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

1,021 次查看
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 项奖励
回复