Compile the source file m1.cpp into a module object from which you later create program A. This allows you to display their exports with the DSPMOD command, or to generate binder language source with the RTVBNDSRC command.
To create module objects from the source files described above, invoke the commands:
CRTCPPMOD MODULE(MYLIB/M1) SRCSTMF(m1.cpp) CRTCPPMOD MODULE(MYLIB/M2) SRCSTMF(m2.cpp) CRTCPPMOD MODULE(MYLIB/M3) SRCSTMF(m3.cpp)
The CRTCPPMOD compiler option indicates to the compiler that you do not want to create a program object from the source file. The target library is specified by the MODULE option.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.