Nostdinc do not search for header files in the c

Info icon This 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
Image of page 65

Info icon This 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 ’.
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 ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern