lib_export. NXP CodeWarrior Development Studio
Reklama
Reklama
Chapter 33 Pragmas for Library and Linking
This pragma does not correspond to any CodeWarrior IDE panel setting. By default, this pragma is off
.
33.4 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.
shows an example:
Listing 33-3. 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.
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
Freescale Semiconductor, Inc.
501
lib_export
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
502 Freescale Semiconductor, Inc.
Atsisiųsti
Reklama