export

Controls the exporting of data and functions to be accessible from outside a program or library.

Syntax
#pragma export on | off | reset
  
#pragma export list 
  name1  [, 
  name2 , ...]
  

name1 , name2

Names of functions or global variables to export.

Remarks

When using the #pragma export on format, all functions in the source file being compiled will be accessible from outside the program or library that the compiler and linker are building.

Use the #pragma export list format to specify global variables and functions for exporting. In C++, this form of the pragma applies to all variants of an overloaded function. You cannot use this pragma for C++ member functions or static class members. Example of an Exported List shows an example:

Listing 1. Example of an Exported List
extern int f(),g;
#pragma export list f,g
Related information
always_import
import
lib_export