Import/Export Using Linker Options

To import or export a symbol when the source code cannot be updated with a __declspec() annotation, the following linker options can be used:

NOTE

The --import and --export Options

The --import and --export options cannot be used when building a Linux executable or DSO.