[Trilinos-Users] Problem building with gcc 4.1.2

Tudor Buican tudor at timb.com
Wed Sep 3 14:02:03 MDT 2008


Hi.

I'm trying to build with gcc 4.1.2 (and mpichgm-1.2.7) and I run into
the following problem when reaching teuchos/example/BLAS:

BLAS_example-cxx_main.o(.text+0xd8): In function `main':
/opt/compiler/gcc/4.1.2/include/g++/bits/basic_string.h:230: undefined
reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_Rep::_S_empty_rep_storage'
BLAS_example-cxx_main.o(.text+0x1d0):/opt/compiler/gcc/4.1.2/include/g+
+/bits/basic_string.h:232: undefined reference to
`__gnu_cxx::__exchange_and_add(int volatile*, int)'BLAS_example-
cxx_main.o(.text+0x1fd):/opt/compiler/gcc/4.1.2/include/g+
+/bits/basic_string.h:230: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
BLAS_example-cxx_main.o(.text+0x222):/opt/compiler/gcc/4.1.2/include/g+
+/bits/basic_string.h:232: undefined reference to
`__gnu_cxx::__exchange_and_add(int volatile*, int)'collect2: ld returned
1 exit status
make[5]: *** [BLAS_example.exe] Error 1

etc., etc.

Any idea what it is that I'm doing wrong?

Thanks for the help.

-Tudor

-- 
Tudor N. Buican, PhD
Managing Member
SEA LLC
phone: 505-271-9925, 505-818-7303
fax: 505-271-9925
email: tudor at timb.com





More information about the Trilinos-Users mailing list