C++ User's Guide

-Ipathname

Add pathname to the #include file search path.

This option adds pathname to the list of directories that are searched for #include files with relative file names (those that do not begin with a slash).

The preprocessor searches for #include files in the following order:

  1. For includes of the form #include "foo.h" (where quotation marks are used), the directory containing the source file is searched

  2. For includes of the form #include <foo.h> (where angle brackets are used), the directory containing the source file is not searched

  3. The directories named with -I options, if any

  4. The standard directory for C++ header files at the following default directory: /opt/SUNWspro/SC5.0/include/CC

  5. Special-purpose files: /opt/SUNWspro/SC5.0/include/cc

  6. In /usr/include

Interactions

If -ptipath is not used, the compiler looks for template files in -Ipathname.

Use -Ipathname instead of -ptipath.