lib_export

Controls the exporting of data or functions.

Syntax
#pragma lib_export on | off | reset
  
#pragma lib_export list 
  name1  [, 
  name2  ]*
  
Remarks

When using the #pragma lib_export on format, the linker marks all data and functions that are within the pragma's scope for export.

Use the #pragma lib_export list format to tag specific data or 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 a lib_export List shows an example:

Listing 1. Example of a lib_export List
extern int f(),g;
#pragma lib_export list f,g

This pragma does not correspond to any panel setting. By default, this pragma is disabled.

Related information
always_import
export
import