import

Controls the importing of global data or functions.

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

name1 , name2

Names of functions or global variables to import.

Remarks

When using the #pragma import on format, all functions are automatically imported.

Use the #pragma import list format to specify data or functions for importing. 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 Imported List shows an example:

Listing 1. Example of an Imported List
extern int f(),g;
#pragma import list f,g

This pragma does not correspond to any CodeWarrior IDE panel setting. By default, this pragma is off .

Related information
always_import
export
lib_export