lola:/usr/local/geant/examples/novice/N01# make Using granular libraries ... Linking exampleN01 ... /usr/local/geant/lib/Linux-g++/libG4globman.a(G4ios.o)(.gnu.linkonce.d.__vt_14G4 strstreambuf+0x24): undefined reference to `streambuf::seekoff(long long, ios::s eek_dir, int)' /usr/local/geant/lib/Linux-g++/libG4globman.a(G4ios.o)(.gnu.linkonce.d.__vt_14G4 strstreambuf+0x28): undefined reference to `streambuf::seekpos(long long, int)' /usr/local/geant/lib/Linux-g++/libG4globman.a(G4ios.o)(.gnu.linkonce.d.__vt_14G4 strstreambuf+0x40): undefined reference to `streambuf::sys_seek(long long, ios:: seek_dir)' /usr/local/geant/lib/Linux-g++/libG4globman.a(G4ios.o)(.gnu.linkonce.d.__vt_14G4 strstreambuf+0x4c): undefined reference to `streambuf::showmanyc(void)' /usr/local/geant/lib/Linux-g++/libG4globman.a(G4ios.o)(.gnu.linkonce.d.__vt_14G4 strstreambuf+0x50): undefined reference to `streambuf::imbue(void *)' collect2: ld returned 1 exit status make: *** ä/usr/local/geant/bin/Linux-g++/exampleN01ý Error 1
This must be a very simple and minor problem on his local installation of Linux, I think. At least this must NOT be a problem of exanmpleN01 itself.
The problem is probably due to the specific Linux system configuration, concerning the standard C++ libraries. On RedHat 6.0/6.1 (Linux distribution supported in Geant4), those look like: $ ls -l /usr/lib/libstd* /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so /usr/lib/libstdc++-libc6.1-1.so.2 -> libstdc++-2-libc6.1-1-2.9.0.so /usr/lib/libstdc++.so.2.7.2 -> libstdc++.so.2.7.2.8 /usr/lib/libstdc++.so.2.7.2.8 /usr/lib/libstdc++.so.2.8 -> libstdc++.so.2.8.0 /usr/lib/libstdc++.so.2.8.0 'streambuf' symbols should be defined in libstdc++. Check that your system configuration is consistent.