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

ifort 8.1 EM64T - could not find libstdc++ include files

ddlucas_jp
Beginner
331 Views

I just installed the latest Intel EM64T fortran compiler (Version 8.1.022) on an unsupported 64-bit linux distribution (Gentoo). I am using a supported version of gcc (i.e., gcc 3.3.4 as noted in step 7 below), however.

Things go smoothly with the installation (see below), but I receive the following compile-time error on a simple test program: "ifort: error: could not find directory in which the set of libstdc++ include files resides"

Compiling with the '-no_cpprt' flag, however, produces an executable that runs successfully.

I need to link to the C++ runtime libs for my application though. Is there something else that I'm missing during my installation?

(Note, I changed EFI2_INCLUDE1 and EFI2_LINUX_DIR_NAME as noted in step 7 below).


Here are the installation steps I followed (with root access):

1. untarred the package using 'tar -zxvf l_fce_pc_8.1.022.tar.gz'

2. converted rpm to gzipped tar using 'rpm2targz intel-iforte8-8.1-022.i386.rpm'

3. 'cp intel-iforte8-8.1-022.i386.tar.gz /'

4. 'cd /' and then installed to /opt/intel_fce_80/ using 'tar -zxvf intel-iforte8-8.1-022.i386.tar.gz'

5. 'cd /opt/intel_fce_80/bin'

6. changed all occurrences of with /opt/intel_fce_80 in six files (ifc.cfg, ifort.cfg, ifc, ifort, ifortvars.sh, and ifortvars.csh).

7. changed the EFI2_INCLUDE1 and EFI2_LINUX_DIR_NAME environment variables in ifort and ifc to reflect the current linux installation. (i.e., EFI2_INCLUDE1="/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/include" and EFI2_LINUX_DIR_NAME="/usr/lib/gcc-lib/x86_64-pc-linux-gnu")

8. copied license into /opt/intel_fce_80/licenses and sourced /opt/intel_fce_80/bin/ifortvars.sh

Message Edited by ddlucas_jp on 09-19-2004 08:54 PM

Message Edited by ddlucas_jp on 09-19-2004 09:19 PM

0 Kudos
1 Reply
chjiang
Beginner
331 Views
Hi, I fixed it by `ln -s /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/include /usr/include/g++`
0 Kudos
Reply