[Trilinos-Users] Tpetra: multiple definitions

Nico Schlömer nico.schloemer at ua.ac.be
Tue Oct 13 09:48:37 MDT 2009


Hi,

I came across something awkward when trying to link with Tpetra. There's tons 
of multiple definitions, such as

================== *snip* ==================
[...]
classA.cpp:(.text+0x3134): multiple definition of 
`Tpetra::Distributor::computeReceives()'
tpetraTest.o:tpetraTest.cpp:(.text+0x29a0): first defined here
classA.o: In function 
`Tpetra::Distributor::createFromSends(Teuchos::ArrayView<int const> const&)':
[...]
================== *snap* ==================

when, e.g., Tpetra_MultiVector.hpp is included twice (I think).

A minimalistic example reproducing the error is appended.

Cheers,
Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tpetraMulDef.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 689 bytes
Desc: not available
Url : https://software.sandia.gov/pipermail/trilinos-users/attachments/20091013/86776f9d/attachment-0001.bin 


More information about the Trilinos-Users mailing list