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*). Unlike --hide_all, --no_hide_all, this does not affect extern references.