‑‑so_import_all
Syntax
‑‑so_import_all
Description
This is a linker option.
By default, the linker generates an error if the shared object contains references to symbols that are not defined in the shared object. Use this option to allow all undefined symbols in the object—they will be declared as external in the shared object. (The linker option --so_import and the so_import linker directive allow individual symbols.)
Normally, there is no need for using this option. Instead of making all imported symbols become external symbols in the shared object, just use the ‑‑diag_suppress or ‑‑diag_warning option to suppress the linker error or reduce it to a warning. However, using the --so_import_all option works also if no linker configuration file has been specified.
注記
With this option all undefined symbols in the shared object are declared as external and allowed in the object. This is potentially less safe because the shared object can refer to any symbol, but might be preferable to maintaining lists of trusted symbols.
See also
‑‑so_import, 共有オブジェクト(32 ビットモードのみ), and so_import ディレクティブ.
注意
To set this option, use Project>Options>Linker>Extra Options.