The most basic entry of an Integrated File System name does not specify any path information.
+--------------------------------------------------------------------------------+ | Create C++ Module (CRTCPPMOD) | | | | Type choices, press Enter. | | | | Module . . . . . . . . . . . . . > TEST Name | | Library . . . . . . . . . . . *CURLIB Name, *CURLIB | | Source file . . . . . . . . . . QCPPSRC Name | | Library . . . . . . . . . . . *CURLIB Name, *CURLIB | | Source member . . . . . . . . . *MODULE Name, *MODULE | | Source stream file . . . . . . . > test.cpp | | | | Text 'description' . . . . . . . *BLANK | | | | | | | | | | | | | | | | | | Bottom | | F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel | | F13=How to use this display F24=More keys | | | +--------------------------------------------------------------------------------+
Without a pathname, the system assumes that your source is located in the current directory. The default current directory is the base (/) directory of the root file system, but your individual user profile may change this default to a different directory. You can change the current directory with the Change Current Directory (CHGCURDIR) command.
The header files specified in any #include statements in your source will be searched for in the source directory first and then the specified INCDIR directory. For example, if you compile the following source in file /goodness/mysource.cpp:
#include "special/mystuff.h" class test : public base {
·
·
·
with the INCDIR value set to /mydir, your included header file is first searched for as /goodness/special/mystuff.h and then /mydir/special/mystuff.h.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.