G

Option Type Default Value #pragma options C C++
-flag - - x x

Syntax
This is a linkage editor (ld) option only. Refer to AIX Version 4 Commands Reference for a description of ld command usage and synatx.

Purpose
Tells the linkage editor to create a dynamic library.

Notes
This option is valid only for the linkage editor (ld) command.

IBM C and C++ Compilers invocation commands can not create dynamic libraries. If you issue this option as part of a IBM C and C++ Compilers compiler invocation, compilation stops and a message similar to the following is issued:

1501-yyy The option -G is not supported. Use ld to build shared objects.



List of Compiler Options and Their Defaults
Options that Define the Compiler Object Code Produced