Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

staticlib

Invokes the libtool command to generate static libraries.

Syntax

Linux:

None

macOS:

-staticlib

Windows:

None

Arguments

None

Default

OFF

The compiler produces an executable.

Description

This option invokes the libtool command to generate static libraries. This option is processed by the command that initiates linking, adding library names explicitly to the link command.

When passed this option, the compiler uses the libtool command to produce a static library instead of an executable when linking.

To build dynamic libraries, you should specify option -dynamiclib or libtool -dynamic <objects>.

IDE Equivalent
None
Alternate Options

None

See Also