| Syntax: | Default: |
, [internal_name] ) , [internal_name] , [ordinal] , [RESIDENTNAME | NONAME] , [PARMWORDS | CONSTANT] , [numWords] ) |
none |
This option makes an internal symbol visible outside the module being built. You can use it to export symbols from a DLL or shared library.
For
modules built from C++ source code, the options
link(exportAll), link(export_NameSpace,
name), and link(export_Prefix,
prefix) are easier to use than link(export, ...) or link(exportList, fileName.),
but give you less flexibility.
You can specify just the name of the symbol with this option. Optionally, you can specify some or all the parameters described in the table below. The only way to apply the optional parameters to exported symbols is to use this option or link(exportList, fileName).
The parameters shown enclosed in [ and ] are optional. When you omit them, insert a comma as a place holder if you specify any later parameters. The | character separates alternatives.
For example, the line below exports the symbol ABC. The second parameter is omitted, so the internal name of the symbol must also be ABC. The third parameter puts ABC in position 5 in the module definition table, giving it ordinal value 5. The parameter after NONAME is also omitted, but a place-holding comma is not required because no other parameters follow. The effect of NONAME depends on the operating system as explained in the table below.
link(export, "ABC",, 5,NONAME)
This table describes the parameters of this option in detail.
| parameter | meaning |
|---|---|
| external_name | This string is the name by which the symbol is known to other modules. |
| internal_name | This string is the actual
name of the function or data item as it appears within
the DLL or shared library. By default this is the same as
the external name. |
| ordinal | This number specifies the
function's ordinal position within the module definition
table. The value of ordinal must be in the range 1 to
65,535. If you supply an ordinal number, the symbol can
be referred to when it is imported by either its external
name or its ordinal value. |
| RESIDENTNAME or NONAME |
|
| PARMWORDS or CONSTANT |
|
| numWords |
![]()
Incremental C++ Builds
C Compilation
Configuration Files
Decorated and Mangled Names
![]()
Set Build Options
Build
Build Dynamic Link
Libraries
Export Symbols from a DLL
Get Mangled Names for C++ Symbols
