Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7730 Discussions

Incomplete search list for #include files

ed_rosenbloom
Beginner
143 Views
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?
0 Kudos
3 Replies
TimP
Black Belt
143 Views
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.
Judith_W_Intel
Employee
143 Views
I can reproduce the problem and have entered this in our problem tracking database as DPD200157617.
We should be compatible with gcc and we are not.

thanks for your report.

Judy
JenniferJ
Moderator
143 Views

this issue is fixed a while back in 14.0.

Jennifer

Reply