You copied the Doc URL to your clipboard.

--default_definition_visibility=visibility

Controls the default ELF symbol visibility of extern variable and function definitions.

Syntax

--default_definition_visibility=visibility

Where:

visibility

is default, hidden, internal, or protected.

Usage

Use --default_definition_visibility=visibility to force the compiler to use the specified ELF symbol visibility for all extern variables and functions defined in the source file, if they do not use __declspec(dll*) or __attribute__((visibility("visibility_type"))). Unlike --hide_all, --no_hide_all, this does not affect extern references.

Default

By default, --default_definition_visibility=hidden.

Was this page helpful? Yes No