Miscellaneous option category for the c linker – HP Integrity NonStop H-Series User Manual

Page 53

Advertising
background image

Figure 9 Miscellaneous option category for the C Linker

All tools include a Miscellaneous options page where you can specify most tool options. Explicitly
defined tool options, such as the Verbose check box in

Figure 9 (page 53)

, are for common options

and are there for your convenience. But you also have the option of entering -Weld=-verbose
directly in the additional options box.

Use of option categories is required for the following entities:

Object files from other projects. Specify these in the Other objects list on the Miscellaneous
page of linkers (see

Figure 9 (page 53)

). Object files listed in Other objects are written to the

objects.mk

file, where they become part of the USER_OBJS definition, as in:

USER_OBJS := ../../linkfileproj/Debug/linkfile.o

$(USER_OBJS)

is passed to the linker in the final build step in the main makefile.

Libraries from other projects. Specify these (as well as library search paths) in the Libraries
option category for linkers. Libraries listed in the Libraries option category are written to the
objects.mk

file, where they become part of the LIBS definition, as in:

LIBS := -lfoo -lbar

NSDEE prepends -l to each library you add to the list of libraries. $(LIBS) is passed to the
linker in the final build step in the main makefile.

Include paths. Specify these in the Includes options category for compilers. Adding include
paths in this way results in the include paths being added to the top-level Includes folder of
your project, which in turn causes CDT's C/C++ indexer to search your include paths for
symbols in your source files.

Tool Chains

53

Advertising
This manual is related to the following products: