Download TR0109 TSK3000 Embedded Tools Reference

Transcript
Tool Options − Control Program
Control Program: −−library (−l)
Command line syntax
−−library=name
−lname
Description
With this option you tell the linker via the control program to use system library name.lib, where name is a string. The
linker first searches for system libraries in any directories specified with −−library−directory, then in the directories specified
with the environment variable LIBTSK3000, unless you used the option −−ignore−default−library−path.
Example
To search in the system library c3000.lib (C library):
cc3000 test.obj mylib.lib −−library=c3000
The linker links the file test.obj and first looks in mylib.lib (in the current directory only), then in the system library
c3000.lib to resolve unresolved symbols.
Related information
Linker option −−library−directory (Additional search path for system libraries)
Section 5.4, Linking with Libraries, in chapter Using the Linker of the user’s manual.
4−133