{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Nostdinc do not search for header files in the c

Info iconThis preview shows pages 65–67. Sign up to view the full content.

View Full Document Right Arrow Icon
-nostdinc++ Do not search for header files in the C ++ -specific standard directories, but do still search the other standard directories. (This option is used when building the C ++ library.) -include file Process file as if #include "file" appeared as the first line of the primary source file. However, the first directory searched for file is the preprocessor’s working directory instead of the directory containing the main source file. If
Background image of page 65

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Chapter 12: Invocation 62 not found there, it is searched for in the remainder of the #include "..." search chain as normal. If multiple ‘ -include ’ options are given, the files are included in the order they appear on the command line. -imacros file Exactly like ‘ -include ’, except that any output produced by scanning file is thrown away. Macros it defines remain defined. This allows you to acquire all the macros from a header without also processing its declarations. All files specified by ‘ -imacros ’ are processed before all files specified by -include ’. -idirafter dir Search dir for header files, but do it after all directories specified with ‘ -I and the standard system directories have been exhausted. dir is treated as a system include directory. If dir begins with = , then the = will be replaced by the sysroot prefix; see ‘ --sysroot ’ and ‘ -isysroot ’. -iprefix prefix Specify prefix as the prefix for subsequent ‘ -iwithprefix ’ options. If the prefix represents a directory, you should include the final ‘ / ’. -iwithprefix dir -iwithprefixbefore dir Append dir to the prefix specified previously with ‘ -iprefix ’, and add the resulting directory to the include search path. ‘ -iwithprefixbefore ’ puts it in the same place ‘ -I ’ would; ‘ -iwithprefix ’ puts it where ‘ -idirafter ’ would. -isysroot dir This option is like the ‘ --sysroot ’ option, but applies only to header files (except for Darwin targets, where it applies to both header files and libraries). See the ‘ --sysroot ’ option for more information. -imultilib dir Use dir as a subdirectory of the directory containing target-specific C ++ headers. -isystem dir Search dir for header files, after all directories specified by ‘ -I ’ but before the standard system directories. Mark it as a system directory, so that it gets the same special treatment as is applied to the standard system directories. See Section 2.8 [System Headers], page 13 . If dir begins with = , then the = will be replaced by the sysroot prefix; see ‘ --sysroot ’ and ‘ -isysroot ’. -iquote dir Search dir only for header files requested with #include " file " ; they are not searched for #include < file > , before all directories specified by ‘ -I ’ and before the standard system directories. See Section 2.3 [Search Path], page 9 . If dir begins with = , then the = will be replaced by the sysroot prefix; see ‘ --sysroot and ‘ -isysroot ’.
Background image of page 66
Image of page 67
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}