Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Include Directory Question

jeff_ryman
Beginner
885 Views
I am testing ifort Version 8.1 Build 20050823Z Package ID: l_fc_pc_8.1.030 for the following simple program:
program hello
write (*,*) 'Hello, world from Fortran 90'
end
The command 'ifort -v -c -ohello.o hello.f90 > compile.lis 2>&1' generates the command '/opt/intel_fc_80/bin/fortcom -D__INTEL_COMPILER=810 ... -I. -I/include -I/opt/intel_fc_80/include -I/opt/intel_fc_80/substitute_headers -I/usr/include ...'
Why is '-I/include' in the generated command? The include subdirectory for the install directory is /opt/intel_fc_80/include, which is already in the command. The inclusion of this in the path apparently is not hurting anything, but it piqued my curiosity.
The command line generated with ifort v9.0 does NOT contain the same phrase.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
885 Views
It sounds as if the 8.1 compiler was not installed properly. ifort.cfg gets written by the install and it should have replaced INSTALLDIR with the proper path. Are you properly "source"-ing the compiler?
0 Kudos
jeff_ryman
Beginner
885 Views
Yes, I source /opt/intel_fc_80/bin/ifortvars.sh before running ifort. You will note that "-I /opt/intel_fc_80/include and -I/opt/intel_fc_80/substitute_headers" are present, indicating that the installation directory (/opt/intel_fc_80) include files are being used. I will have our system administrator install again with the latest patches after the holidays, and see if the message still occurs. Thanks.
0 Kudos
jeff_ryman
Beginner
885 Views
Our system administrator reinstalled the compiler (v8.1.031) and the error message has disappeared. Thanks for the suggestion!
0 Kudos
Reply