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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5−154PCP Reference Manual−l (−−library)Command line syntax−lname−−library=nameDescriptionWith this option you tell the linker via the control program to search alsoin system library libname.a, where name is a string. The linker firstsearches for system libraries in any directories specified with −Lpath, thenin the directories specified with the environment variables LIBTC1V1_2,LIBTC1V1_3 or LIBTC2, unless you used the option −L without a directory.ExampleTo search in the system library libfp.a (floating−point library):cc<strong>pcp</strong> test.obj mylib.a −lfpcc<strong>pcp</strong> test.obj mylib.a −−library=fpThe linker links the file test.obj and first looks in mylib.a (in thecurrent directory only), then in the system library libfp.a to resolveunresolved symbols.Related informationTOOL OPTIONSControl program option −L (Add library directory)Section 6.4, Linking with Libraries, in the User’s Manual.

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

Saved successfully!

Ooh no, something went wrong!