Problem 77 - after install geant4, try linking examples
Summary: after install geant4, try linking examples
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 1.0
Hardware: PC Linux
: P2 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2000-03-29 18:21 CEST by vinni
Modified: 2000-03-30 08:29 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description vinni 2000-03-29 18:21:28 CEST
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
Comment 1 Makoto.Asai 2000-03-29 19:06:59 CEST
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.
Comment 2 Gabriele Cosmo 2000-03-30 08:29:59 CEST
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.