libCint.so: undefined reference to ... @GLIBCXX_3.4.9

Hi,

I don’t know what happens but suddenly I cannot compile any more my codes. This is the error:

/afs/cern.ch/atlas/software/releases/17.0.0/LCGCMT/LCGCMT_60b/InstallArea/i686-slc5-gcc43-opt/bin/…/…/…/…/…/sw/lcg/app/releases/ROOT/5.28.00b/i686-slc5-gcc43-opt/root/lib/libCore.so: undefined reference to `std::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, int)@GLIBCXX_3.4.9

i tried to compile a code like

int main(){}

with this makefile:

[size=85]ROOTCFLAGS = $(shell root-config --cflags)
ROOTLIBS = $(shell root-config --libs)
ROOTGLIBS = $(shell root-config --glibs)

CXX = g++
CXXFLAGS =-I$(ROOTSYS)/include -O -Wall -fPIC
LD = g++
LDFLAGS = -g
SOFLAGS = -shared

CXXFLAGS += $(ROOTCFLAGS)
LIBS = $(ROOTLIBS)
GLIBS = $(ROOTGLIBS)

OBJS = dummy.o

dummy: $(OBJS)
$(CXX) -o $@ $(OBJS) $(CXXFLAGS) $(LIBS)

suffix rule

.cc.o:
$(CXX) -c $(CXXFLAGS) $(GDBFLAGS) $<

clean

clean:
rm -f *~ *.o *.o~ core[/size]

I tried both with 32 and 63 bit environment. Do you have any idea what’s wrong?

Hi,

I think you should first setup the correct version of gcc (4.3) For example, with bash (64bit):. /afs/cern.ch/sw/lcg/external/gcc/4.3.2/x86_64-slc5/setup.shAnd with [t]csh (64bit): source /afs/cern.ch/sw/lcg/external/gcc/4.3.2/x86_64-slc5/setup.csh
For 32bit, simply replace x86_64-slc5 by i686-slc5.

Cheers, Bertrand.