Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

iostream file not found

paul312
Beginner
765 Views

I am trying to compile the latest version of a large code, Vasp 6.5.0.  The installation tools include a makefile for compiling with the oneapi compiler of which I have 2025.0.4 installed. The ipx compiler seems to fail to open up a standard c library header and based upon the link below, the problem would seem to be with a mismatch between the gcc and oneapi installations. Any suggestions as to what to try next?

 

referenced Intel link

https://www.intel.com/content/www/us/en/developer/articles/troubleshooting/error-c-header-file-not-found-with-dpc-c-compiler.html

 

icx -D YY_parse_DEBUG=1 -c lex.yy.c -o lex.yy.o

locproj.l:2:10: fatal error: 'iostream' file not found

    2 | #include <iostream>

      |          ^~~~~~~~~~

 

My current gcc and g++  installation(s) are below:

yum list installed | grep -i gcc-c++

gcc-c++.x86_64                                          11.5.0-2.el9                                                   @appstream   

gcc-toolset-12-gcc-c++.x86_64                           12.2.1-7.7.el9_4                                               @appstream   

gcc-toolset-13-gcc-c++.x86_64                           13.3.1-2.1.el9_4                                               @appstream   

paulfons@neutrino:/data/Software/Vasp/vasp.6.5.0>yum list installed | grep -i gcc

gcc.x86_64                                              11.5.0-2.el9                                                   @appstream   

gcc-c++.x86_64                                          11.5.0-2.el9                                                   @appstream   

gcc-gfortran.x86_64                                     11.5.0-2.el9                                                   @appstream   

gcc-plugin-annobin.x86_64                               11.5.0-2.el9                                                   @appstream   

gcc-toolset-12-binutils.x86_64                          2.38-19.el9                                                    @appstream   

gcc-toolset-12-binutils-gold.x86_64                     2.38-19.el9                                                    @appstream   

gcc-toolset-12-gcc.x86_64                               12.2.1-7.7.el9_4                                               @appstream   

gcc-toolset-12-gcc-c++.x86_64                           12.2.1-7.7.el9_4                                               @appstream   

gcc-toolset-12-libstdc++-devel.x86_64                   12.2.1-7.7.el9_4                                               @appstream   

gcc-toolset-12-runtime.x86_64                           12.0-6.el9                                                     @appstream   

gcc-toolset-13-binutils.x86_64                          2.40-21.el9                                                    @appstream   

gcc-toolset-13-binutils-gold.x86_64                     2.40-21.el9                                                    @appstream   

gcc-toolset-13-gcc.x86_64                               13.3.1-2.1.el9_4                                               @appstream   

gcc-toolset-13-gcc-c++.x86_64                           13.3.1-2.1.el9_4                                               @appstream   

gcc-toolset-13-libstdc++-devel.x86_64                   13.3.1-2.1.el9_4                                               @appstream   

gcc-toolset-13-runtime.x86_64                           13.0-2.el9                                                     @appstream   

libgcc.x86_64                                           11.5.0-2.el9                                              

 

 

 

0 Kudos
1 Reply
Sravani_K_Intel
Moderator
642 Views

Hi @paul312

<iostream> is a header file that is part of the C++ standard library so using icpx instead of icx might help here. 

0 Kudos
Reply