If I run the Intel compiler with the -v flag, a list of #include search directories is produced. This list does not include any of the -I that are passed on the command line. It is pretty clear that these -I dirs are being searched, since using -H shows the files being found in those search paths.
Is this the way the Intel compiler always shows this output? What controls the search order for the include directories?
I would expect the search to take the paths you specify, followed by the include directory in the icc installation, followed by the paths set by g++. The g++ search order is not the same in all installations. Usually, the option icc -# takes the place of gcc -v.