| Syntax: | Default: |
| link(import, [internal_name],
library_name, export_name) |
none |
Use this option to specify that a symbol is imported from a dynamic link library or shared library. Use this option if your target file uses a library that is not built with the same configuration file and when you do not have an import library.
The optional first argument specifies the name for the symbol in the importing program. If you do not specify an internal name, the name of the function or data item in the exporting library is used as the name for the symbol in the module being built. You must include a comma as a placeholder when you omit the internal name.
![]()
You must specify an internal name when you specify
the exported symbol by ordinal number.
The second argument is the name of the exporting module.
![]()
In the third argument, you can supply either the
ordinal or the name of the symbol, as defined in the exporting
module.
In the third argument, you must supply the
name of the symbol, as defined in the exporting module
If the
exported symbol is defined in a C++ module, and is not declared
with extern "C" linkage, the export name must be the
mangled name of the symbol in the DLL or shared library. The
mangled name is the name as it appears in the object module or
link map, rather than as it appears in the source file.
On
Windows, you must supply the name in decorated form.
![]()
Incremental C++ Build
C Compilation
Configuration Files
![]()
Set Build Options
Build
Build Dynamic Link
Libraries
Export Symbols from a DLL
Build Modules That Use DLLs
