Fatal error: iostream.h: No such file or directory

g++ version:4.8.5
When I install root5.34/28 with this version g++, I got an error like

In file included from cint/cint/src/dict/libstrm.h:39:0, from cint/cint/src/dict/libstrm.cxx:14: cint/cint/lib/stream/stdiostr.h:27:25: fatal error: stdiostream.h: No such file or directory compilation terminated. Makefile:631: recipe for target 'cint/cint/src/dict/libstrm.o' failed make: *** [cint/cint/src/dict/libstrm.o] Error 1
Any solutions? I have to install version 5.34/28 because a software we develop has to go with this version.

Hi,

What does “make showbuild” show? Which platform is this, how did you configure?

Cheers, Axel.

[quote=“Axel”]Hi,

What does “make showbuild” show? Which platform is this, how did you configure?

Cheers, Axel.[/quote]

This is what “make showbuild” shows. I just type “./configure”.

ROOTSYS            = /home/zhao/Downloads/root-6.06.00
GITREV             = 
PLATFORM           = linux
OPT                = -O2

ROOT_SRCDIR        = /home/zhao/root
ROOT_OBJDIR        = /home/zhao/root

CXX                = g++
CC                 = gcc
F77                = gfortran
CPP                = gcc -E
LD                 = g++
F77LD              = gfortran
GCC_MAJOR          = 5
GCC_MINOR          = 2

CXXFLAGS           = -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude     -pthread
CINTCXXFLAGS       = -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude   -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT  -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY  -I/home/zhao/root/cint/cint/inc -I/home/zhao/root/cint/cint/src -I/home/zhao/root/cint/cint/src/dict -pthread
EXTRA_CXXFLAGS     = -Iinclude 
CFLAGS             = -pipe -m64 -Wshadow -Wall -W -fPIC -Iinclude   -pthread
CINTCFLAGS         = -pipe -m64 -Wall -W -fPIC -Iinclude  -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT  -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY  -I/home/zhao/root/cint/cint/inc -I/home/zhao/root/cint/cint/src -I/home/zhao/root/cint/cint/src/dict -pthread
EXTRA_CFLAGS       = -Iinclude 
F77FLAGS           = -fPIC -m64 -std=legacy
LDFLAGS            = -m64 -O2  -Wl,--no-undefined -Wl,--as-needed
F77LDFLAGS         = -m64 -O2  -Wl,--no-undefined -Wl,--as-needed
EXTRA_LDFLAGS      = 
SOFLAGS            = -shared -Wl,-soname,
SOEXT              = so

SYSLIBS            = -lm -ldl  -pthread   -rdynamic
XLIBS              =  -lXpm  -lXext -lX11
CILIBS             = -lm -ldl -rdynamic
F77LIBS            = /usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.so /usr/lib/gcc/x86_64-linux-gnu/5/libgfortranbegin.a

FPYTHIA6LIBDIR     = 
TABLE              = 
XPMLIBDIR          = 
XPMLIB             = -lXpm
X11INCDIR          = 
TTFFONTDIR         = /home/zhao/Downloads/root-6.06.00/fonts
OPENGLLIBDIR       = 
OPENGLULIB         = -lGLU
OPENGLLIB          = -lGL
OPENGLINCDIR       = 
CERNLIBDIR         = 
CERNLIBS           = 
OSTHREADLIB        = -pthread
SHIFTLIB           = 
DCAPLIB            = 
DAVIXLIB           = 
GFALLIB            = 
MYSQLINCDIR        = /usr/include/mysql
ORACLEINCDIR       = 
PGSQLINCDIR        = 
PYTHONLIBDIR       = 
PYTHONLIB          = -lpython2.7
PYTHONINCDIR       = /usr/include/python2.7
RUBYLIBDIR         = 
RUBYLIB            = 
RUBYINCDIR         = 
FFTW3LIBDIR        = 
FFTW3LIB           = /usr/lib/x86_64-linux-gnu/libfftw3.a
FFTW3INCDIR        = 
GVIZLIBDIR         = 
GVIZLIB            = lib/libGviz.so
GVIZINCDIR         = 
SAPDBINCDIR        = 
SQLITEINCDIR       = 
SRPLIBDIR          = 
SRPINCDIR          = 
SRPUTILLIB         = 
LDAPINCDIR         = 
LDAPCLILIB         = -lldap -llber
MONALISAINCDIR     = 
MONALISAWSCLILIB   = 
MONALISACLILIB     = 
QTLIBDIR           = 
QTLIB              = 
QTINCDIR           = 
AFSDIR             = 
SHADOWFLAGS        = -DR__SHADOWPW 

INSTALL            = cp -dpR
INSTALLDATA        = cp -dpR
INSTALLDIR         = mkdir -p
MAKEDEP            = bin/rmkdepend
MAKELIB            = /home/zhao/root/build/unix/makelib.sh -x 
MAKEDIST           = /home/zhao/root/build/unix/makedist.sh
MAKEDISTSRC        = /home/zhao/root/build/unix/makedistsrc.sh
MAKEVERSION        = /home/zhao/root/build/unix/makeversion.sh

The list of modules to be built:
--------------------------------
build cint/reflex cint/cint core/metautils core/pcre core/clib core/utils core/textinput core/base core/cont core/meta core/thread io/io math/mathcore net/net core/zip core/lzma math/matrix core/newdelete hist/hist tree/tree graf2d/freetype graf2d/mathtext graf2d/graf graf2d/gpad graf3d/g3d gui/gui math/minuit hist/histpainter tree/treeplayer gui/ged tree/treeviewer math/physics graf2d/postscript core/rint html montecarlo/eg geom/geom geom/geompainter montecarlo/vmc math/fumili math/mlp math/quadp net/auth gui/guibuilder io/xml math/foam math/splot math/smatrix io/sql geom/geombuilder hist/spectrum hist/spectrumpainter gui/fitpanel proof/proof proof/proofplayer gui/sessionviewer gui/guihtml gui/recorder core/unix math/vdt graf2d/x11 graf2d/x11ttf graf3d/x3d rootx graf3d/gl graf3d/eve graf3d/gviz3d sql/mysql misc/memstat graf2d/asimage math/fftw graf2d/gviz bindings/pyroot io/xmlparser math/genvector math/mathmore cint/cintex net/krb5auth net/ldap misc/minicern hist/hbook net/rpdutils net/rootd proof/proofd proof/pq2 proof/proofbench tmva math/genetic main   

Hi,

You’re using GCC 5.2 (not 4.8). GCC version 5 is supported since Tue, 24 Mar 2015, i.e. v5-34-30. Please use an older compiler to build an older tag of 5.34.

Cheers, Axel.

[quote=“Axel”]Hi,

You’re using GCC 5.2 (not 4.8). GCC version 5 is supported since Tue, 24 Mar 2015, i.e. v5-34-30. Please use an older compiler to build an older tag of 5.34.

Cheers, Axel.[/quote]

Really? I thought I have changed my gcc version because when I type “gcc --version” Outcome says “gcc 4.8.5”. I 'm not sure, I execute command “sudo apt get remove gcc-5” before.

[quote=“ZhaoHao”][quote=“Axel”]Hi,

You’re using GCC 5.2 (not 4.8). GCC version 5 is supported since Tue, 24 Mar 2015, i.e. v5-34-30. Please use an older compiler to build an older tag of 5.34.

Cheers, Axel.[/quote]

Really? I thought I have changed my gcc version because when I type “gcc --version” Outcome says “gcc 4.8.5”. I 'm not sure, I execute command “sudo apt get remove gcc-5” before.[/quote]

Sorry, it’s really the g++ problem!! I don’t know why, but after I “reuninstall” g++5 it works :smiley: Thank you so much Axel :laughing:

You should always use “apt-get purge” instead of “apt-get remove” (“remove” will leave configuration files in the system, while “purge” makes sure that they are deleted too).

Thank you for clearing that up :smiley:

i am building root 5.34.30 and i am facing the error iostream.h not found
by previous conversation i get it i need an older version but i am not getting where to download

You really need 5.34 ? … you cannot use ROOT 6 ?