How to make library files(*.a) in CW8.1 for mpc555

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make library files(*.a) in CW8.1 for mpc555

2,103 Views
B51
Contributor I
Hi Folks
I have use CW MPC5XX v8.1 for 2 years, and I write a lot of functions. Now I want to make my own librarys. In the CW for 08 we can use the linker "libmaker for 08" or libmaker.exe under the "prog" folder, what should I do in the CW for MPC5XX envionment
 
And the CW8.1 compile use *.a not *.lib as library file, I can see CW use "mw lib import eabi", but I can't see any files in the "prog"  folder, why?
 
Does CW 8.1 can't customize  library or I have lost some plugins for the CW MPC5xx v8.1?
 
thank!
 
I have puzzled for 2 weeks!
Labels (1)
0 Kudos
2 Replies

401 Views
CrasyCat
Specialist III
Hello
 
Are you building from the command line or from the IDE?
 
If you are building from the IDE you can create a library setting the "Project Type" in the "EPPC Target" panel to Library.
 
If you are building from the command line (or from a make file) you need to add option -library to your linker options.
 
You can find the list of available linker command line options in
{Install}\PowerPC_EABI_Tools\command_line_tools\ mwldeppc.txt.
 
I hope this helps.
 
CrasyCat
0 Kudos

402 Views
B51
Contributor I
thanks for CrasyCat's help
I make it from the IDE, while there is something wrong I make it from the command line. 
It works good now!
0 Kudos