| Syntax: | Default: |
| incl(userStrategy,
including) incl(userStrategy, primary) |
Use this option to define the search strategy for C++ user includes files. Included files are source files that are included in a build because they are listed in #include preprocessor directives in other source files. If a file is named as a primary C++ source in your configuration file, as well as being included with a preprocessor directive, VisualAge C++ treats it as a primary source and not as an included source.
Specify primary to search the directory where the primary including source is located. A primary source may include other sources directly or indirectly. For example, if primary source a.cpp includes b.hpp which in turns includes x.h, VisualAge C++ looks in the directory that contains a.cpp to satisfy the #include directives in both a.cpp and b.hpp, regardlesss of whether they are in the same directory.
Specify including to search the directory where the directly including file is located, even if it is not a primary source. For example, if primary source a.cpp includes b.hpp which in turns includes x.h, VisualAge C++ looks in the directory that contains a.cpp to satisfy the #include directives in a.cpp and in the directory that contains b.hpp to satisfy the #include directive in b.hpp.
This option tells VisualAge C++ where to look for user-included files, as well as in the directory specified with incl(searchPath, path). To search directories in the include search paths before the directory that contains the including file, also apply option incl(searchPathFirst, yes).
The default setting of this option provides the same behavior as in earlier versions of VisualAge C++ and predecessor products.
![]()
Incremental C++ Build
Search Paths for Include
Files
![]()
Miscellaneous Build Options
![]()
Miscellaneous Build Options
