Wrap your header files in the construct shown in the following figure:
Figure 228. Example of Construct that Permits ILE C Programs to Access C++ LInkage Functions
. . . #ifdef __cplusplus extern "C" {(1) #pragma info(none) #else //only if you have #pragma #pragma nomargins nosequence //nomargin and #pragma checkout in the #pragma checkout(suspend) //header file #endif . . . #ifdef __cplusplus(2) #pragma info(restore) } #else #pragma checkout(resume) #endif } |
Notes:
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.