How to Create a library file from C file

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

How to Create a library file from C file

跳至解决方案
1,773 次查看
bjrajendra
Senior Contributor I

Hello all,

I would like to convert my current .c file into a library file , so as to share the official content to other people. 

Kindly help in this regard.

Raju

标记 (1)
0 项奖励
回复
1 解答
1,705 次查看
ErichStyger
Specialist I

Hi Raju,

this is for a different IDE: Creating a Library with Kinetis Design Studio | MCU on Eclipse 

But the same applies to any GNU based IDE/toolchain as the S32DS.

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,706 次查看
ErichStyger
Specialist I

Hi Raju,

this is for a different IDE: Creating a Library with Kinetis Design Studio | MCU on Eclipse 

But the same applies to any GNU based IDE/toolchain as the S32DS.

I hope this helps,

Erich

0 项奖励
回复
1,705 次查看
bjrajendra
Senior Contributor I

Hi Erich,

Thanks for the swift response.

I'd gone through the link you provided below. I've below issues.

1. There is a wizard provided in the S32DS to create a Project. Should I use this?

2. Also, as the screenshot suggests we still keep the include folder as it contains header files related to the Core of the device. Thus it means the library file generated will work only related to that core????

Raju

0 项奖励
回复
1,705 次查看
ErichStyger
Specialist I

1) You can create a normal project

2) that depends on what you have in your library: if your code is for a dedicated core/device, then it will be the same for your library because the code is compiled with these switches.

Erich

0 项奖励
回复