[Dune-devel] Derive Dune::Exception from std::exception

Christoph GrĂ¼ninger christoph.grueninger at iws.uni-stuttgart.de
Thu Oct 29 07:45:44 CET 2015


Hi Christian,
thanks for having a look at my branch.

Your removal of inline breaks compilation of some common tests, e.g.:

> Scanning dependencies of target stringutilitytest
> [ 75%] Building CXX object dune/common/test/CMakeFiles/stringutilitytest.dir/stringutilitytest.cc.o
> [100%] Linking CXX executable stringutilitytest
> ../../../lib/libdunecommon.a(exceptions.cc.o): In function `Dune::Exception::what() const':
> /temp/gruenich/dune/complete/dune-common/dune/common/exceptions.cc:(.text+0x0): multiple definition of `Dune::Exception::what() const'
> CMakeFiles/stringutilitytest.dir/stringutilitytest.cc.o:/temp/gruenich/dune/complete/dune-common/dune/common/test/stringutilitytest.cc:(.text+0x0): first defined here
> ../../../lib/libdunecommon.a(exceptions.cc.o):(.rodata+0x50): multiple definition of `typeinfo for Dune::Exception'
> CMakeFiles/stringutilitytest.dir/stringutilitytest.cc.o:(.rodata+0x50): first defined here
> ../../../lib/libdunecommon.a(exceptions.cc.o):(.rodata+0x30): multiple definition of `typeinfo name for Dune::Exception'
> CMakeFiles/stringutilitytest.dir/stringutilitytest.cc.o:(.rodata+0x30): first defined here
> ../../../lib/libdunecommon.a(exceptions.cc.o):(.rodata+0x0): multiple definition of `vtable for Dune::Exception'
> CMakeFiles/stringutilitytest.dir/stringutilitytest.cc.o:(.rodata+0x0): first defined here

Bye
Christoph

-- 
A mathematician is a scientist who can figure out anything, except
such simple things as squaring the circle and trisecting an angle.
[Evan Esar (1899-1995), Esar's Comic Dictionary]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20151029/4dd9a521/attachment.sig>


More information about the Dune-devel mailing list