Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Specifying Include Files

$
0
0

The Intel® C++ Compiler searches the default system areas for include files and whatever is specified by the I compiler option. The compiler searches directories for include files in the following order:

  1. Directories specified by the I option

  2. Directories specified in the environment variables

  3. Default include directory

Use the X option to remove default directories from the include file search path.

For example, to direct the compiler to search the path /alt/include instead of the default path, do the following:

Example

//  (Linux* OS and OS X*)
icpc -X -I/alt/include prog1.cpp
//  (Windows* OS)
icl /X /I\alt\include prog1.cpp

Inglés

Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>