13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

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.

Tool OptionsLinker option: --library (-l)Menu entry1. Select Linker » Libraries.The Libraries box shows the list of libraries that are linked with the project.2. To add a library, click on the Add button in the Libraries box.3. Type or select a library (including its path).4. Optionally, disable the option Link default libraries.Use the Edit and Delete button to change a library name or to remove a library from the list.Command line syntax--library=name-lnameDescriptionWith this option you tell the linker to use system library name.lib, where name is a string. The linkerfirst searches <strong>for</strong> system libraries in any directories specified with --library-directory, then in the directoriesspecified with the environment variables LIB<strong>ARM</strong>, unless you used the option --ignore-default-library-path.ExampleTo search in the system library carm.lib (C library):lkarm test.obj mylib.lib --library=carmThe linker links the file test.obj and first looks in library mylib.lib (in the current directory only),then in the system library carm.lib to resolve unresolved symbols.Related in<strong>for</strong>mationLinker option --library-directory (Additional search path <strong>for</strong> system libraries)Section 8.3, Linking with Libraries555

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

Saved successfully!

Ooh no, something went wrong!