Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
6 Views

Incomplete search list for #include files

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
Highlighted
Black Belt
6 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
Highlighted
Employee
6 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
Highlighted
Moderator
6 Views

this issue is fixed a while back in 14.0.

Jennifer

0 Kudos