Encapsulate library files for kinetis series chip programs

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

Encapsulate library files for kinetis series chip programs

890 次查看
fan_li
Contributor I

Hi

   Our team need to encapsulate the software as a library file now,there was a problem in the process.

The following is the problem description and demo:

v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lE:CWprjPrj_PM25TestDemo2LibTestLib2.lib

1.Create project

2.Add sample program

3.Configuration

4.Compile and generate the library file

5.Create the sample program and add the library file

6.Configure the library's path and call the library functions

7.Then compilation will prompt the above error

0 项奖励
回复
1 回复

795 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Fan,

About creating and using library with CodeWarrior, I recommend you a  detail guide:

Creating and using Libraries with ARM gcc and Eclipse | MCU on Eclipse  

Please pay attention the -l option lists the names *without* the ‘lib’ prefix and the ‘.a’ extension. 

BTW, about CW issue, please post on

CodeWarrior Development Tools  there is CW team monitor it.

 

Hope it helps,


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复