| Syntax: | Default: |
| link(exportList, fileName) | none |
This option names a file containing specifications for symbols to be exported from the target module. If you are building a DLL or shared library, you can use this option to make symbols visible to other modules that use them.
For
modules build 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, ...), but give you less
flexibility.
You can specify just the names of symbols to export in the export file the you use 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(export, ...).
You must prepare the file before processing the configuration file. Therefore, you may want to consider alternative methods of exporting symbols from a DLL or shared library.
The file must be formatted as one or more lines, each of which has one of the following two forms.

You can insert whitespace anywhere there is a blank in the text above. The parameters of an export specification are as follows:
| 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 |
NONAME removes the name of the function
from the symbol table on Windows. You can specify this
only if you also supply an ordinal, because the function
can be located only by ordinal number. |
| numWords or CONSTANT |
|
![]()
Incremental C++ Builds
C Compilation
Configuration Files
Decorated and Mangled Names
![]()
Set Build Options
Build
Build a Dynamic Link
Libraries
Export Symbols from a DLL
Get Mangled Names for C++ Symbols
