Encapsulate library files for kinetis series chip programs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Encapsulate library files for kinetis series chip programs

903件の閲覧回数
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 返信

808件の閲覧回数
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 件の賞賛
返信