Developer Guide and Reference

  • 2021.2
  • 04/07/2021
  • Public Content
  • Download as PDF
Contents

shared

Tells the compiler to produce a dynamic shared object instead of an executable.

Syntax

Linux:
-shared
Windows:
None
Arguments
None
Default
OFF
The compiler produces an executable.
Description
This option tells the compiler to produce a dynamic shared object (DSO) instead of an executable. This includes linking in all libraries dynamically and passing
-shared
to the linker.
You must specify option
fpic
for the compilation of each object file you want to include in the shared library.
IDE Equivalent
None
Alternate Options
None

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.