how to create lib file for c file with codewarrior2.10?

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

how to create lib file for c file with codewarrior2.10?

767 次查看
huanghai
Contributor I

i have codewarrior2.10.

i want to convert c file to a lib file.How can i do?thanks.

0 项奖励
回复
3 回复数

654 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

open project settings, choose EPPC Target option and select Library instead of Application. Please see the figure below.

pastedImage_1.png

If you have any other questions, please feel free to write me back.

Regards,

Martin

0 项奖励
回复

654 次查看
huanghai
Contributor I

Hello,Martin,thanks for reply.

I follow your steps,click OK and click Make to build project,but it does not create other file like .lib file type.

My project compose with .c and .h files,some .c file are more important,so I only want to convert these .c file(not all .c file) into lib file.Is there some good method?

I remember that cw4.x has a tool which name is Libmaker.exe,it can covert one .c file into one .lib file.

0 项奖励
回复

654 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

CodeWarrior by default creates output file with the same name for application and also for library. Please change the name of your output file in second line.

pastedImage_1.png

Regards,

Martin

0 项奖励
回复