Libraries Options

The libraries options let you specify libraries for your application.

Descriptions of Libraries Options

-no_cpprt

Default: -cxxlib-icc (use Intel C++ libraries)

Specifies that C++ run-time libraries should not be linked.

This option exists for GNU compatibility reasons, to disable the use of the cpp run-time libraries during link. There is no -cpprt or -yes_cpprt option.

-nodefaultlibs

Default: Off (include default libraries)

Specifies that standard libraries should be used when linking.

This option exists for GNU compatibility reasons. There is no -defaultlibs option.

See also -nostdlib.

-i_dynamic

Default: Off

Instructs the linker to link Intel-provided libraries dynamically.

-Ldir

Default: Off

Instructs the linker to search dir for libraries.

-[no]threads

Default: -nothreads

Specifies whether or not multithreaded libraries should be linked against.

If you specify -threads, this sets the -reentrancy threaded option.

-nostdlib

Default: Off.

Specifies that standard libraries and startup files should be used when linking.

This option exists for GNU compatibility reasons. There is no -stdlib option.

-shared

Default: Off

Specifies that the compiler should build a dynamic shared object (DSO) instead of an executable.

See also Creating Shared Libraries.

-shared-libcxa

Links the Intel-provided libcxa C++ library dynamically.

By default, the libcxa library is linked dynamically. (All C++-related libraries supplied by Intel are linked in dynamically by default.) This option is useful when you are using the -static option and you want to override the effect of the -static option for the libcxa library.

This option has the opposite effect of -static-libcxa.

-static-libcxa

Links the Intel-provided libcxa C++ library statically.

By default, the libcxa library is linked dynamically. (All C++-related libraries supplied by Intel are linked in dynamically by default.) Use this option to link libcxa statically, while still allowing the standard libraries to be linked in by the default behavior.

See also -shared-libcxa option.

-static

Default: Off.

Alternative syntax: -non_shared

Prevents linking with shared libraries (.so files).