|Message: Error when linking to CLHEP library||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
When I attempt to make my application, the following error occurs during the "Linking CXX executable" phase: |
path/to/sw/lcg/external/clhep/188.8.131.52/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.
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)
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:||Outline Depth:||Add message:|