[Trilinos-Users] Problem building with gcc 4.1.2

James Willenbring jmwille at sandia.gov
Thu Sep 4 07:34:18 MDT 2008


Tudor,

Is there a library missing from your link line, or are there multiple
versions of compilers installed on your machine that might be pulling the
wrong version of a library?  What does the link line look like?  This
problem is most likely not specific to this example.

Jim

-----Original Message-----
From: trilinos-users-bounces at software.sandia.gov
[mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Tudor
Buican
Sent: Wednesday, September 03, 2008 3:02 PM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] Problem building with gcc 4.1.2

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



_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users



More information about the Trilinos-Users mailing list