Message: Error when linking to CLHEP library Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Error when linking to CLHEP library 

Forum: Installation and Configuration
Date: 09 Jan, 2013
From: <miambrose>

When I attempt to make my application, the following error occurs during the "Linking CXX executable" phase:

path/to/sw/lcg/external/clhep/2.1.3.1/x86_64-slc5-gcc43-opt/lib/libCLHEP.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::basic_istream<char, std::char_traits<char> >::_M_extract<float>(float&)@GLIBCXX_3.4.9'

The same problem was reported in a previous post (http://hypernews.slac.stanford.edu:5090/HyperNews/geant4/get/installconfig/1211.html), and the advice given there was to check to make sure the gcc and libstdc++ versions were correct.

> gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /build/vdiez/gcc-4.3.6/configure --prefix=/path/to/sw/lcg/external/gcc/4.3.6/x86_64-slc5-gcc46-opt --with-mpfr=/path/to/sw/lcg/external/mpfr/2.4.2/x86_64-slc5-gcc46-opt --with-gmp=/path/to/sw/lcg/external/gmp/4.3.2/x86_64-slc5-gcc46-opt --with-mpc=/path/to/sw/lcg/external/mpc/0.8.1/x86_64-slc5-gcc46-opt --enable-lto --with-libelf=/path/to/sw/lcg/external/libelf/0.8.13/x86_64-slc5-gcc46-opt --with-ppl=/path/to/sw/lcg/external/ppl/0.11.2/x86_64-slc5-gcc46-opt --with-cloog=/path/to/sw/lcg/external/cloog-ppl/0.15.11/x86_64-slc5-gcc46-opt --verbose --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.3.6 (GCC)

> ldd libCLHEP.so
  linux-vdso.so.1 => (0x00007fff141fd000)
  /$LIB/snoopy.so => /lib64/snoopy.so (0x00002acdeca49000)
  libstdc++.so.6 => /path/to/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc43-opt/lib64/libstdc++.so.6 (0x00002acdecc4b000)
  libm.so.6 => /lib64/libm.so.6 (0x00002acdecf77000)
  libgcc_s.so.1 => /path/to/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc43-opt/lib64/libgcc_s.so.1 (0x00002acded1fa000)
  libc.so.6 => /lib64/libc.so.6 (0x00002acded411000)
  libdl.so.2 => /lib64/libdl.so.2 (0x00002acded768000)
  /lib64/ld-linux-x86-64.so.2 (0x00002acdec4b9000)

Given this output, libCLHEP.so appears to be linked with the proper gcc version (4.3.6 in this case) so I am puzzled as to why I am getting an error message. Any help in solving this problem would be greatly appreciated.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: Error when linking to CLHEP library   (Ben Morgan - 10 Jan, 2013)
(_ None: Re: Error when linking to CLHEP library   (miambrose - 10 Jan, 2013)
(_ None: Re: Error when linking to CLHEP library   (Ben Morgan - 21 Jan, 2013)
 Add Message Add Message
to: "Error when linking to CLHEP library"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]