Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7942 Discussions

Incomplete search list for #include files

ed_rosenbloom
Beginner
249 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
Honored Contributor III
249 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.
0 Kudos
Judith_W_Intel
Employee
249 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
0 Kudos
JenniferJ
Moderator
249 Views

this issue is fixed a while back in 14.0.

Jennifer

0 Kudos
Reply