13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tool Options − Archiver5−205ExamplesSuppose the library lib.a contains the following objects (see option −t):obj1.oTo add obj2.o to the end of lib.a:ar<strong>pcp</strong> −r lib.a obj2.oTo insert obj3.o just before obj2.o:ar<strong>pcp</strong> −r −b obj2.o lib.a obj3.oThe library lib.a after these two invocations now looks like:obj1.oobj3.oobj2.oCreating a new libraryTo create a new library file, add an object file and specify a library thatdoes not yet exist:ar<strong>pcp</strong> −r obj1.o newlib.aThe archiver creates the library newlib.a and adds the object obj1.o toit.To create a new library file and overwrite an existing library, add an objectfile and specify an existing library with the supoption −c:ar<strong>pcp</strong> −r −c obj1.o lib.aThe archiver overwrites the library lib.a and adds the object obj1.o toit. The new library lib.a only contains obj1.o.Related informationArchiver option −t (Print library contents)• • • • • • • •

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!