[Dune] [#1123] Multiple definition error in dune/istl/supermatrix.hh

Dune flyspray at dune-project.org
Tue Jun 5 16:28:25 CEST 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Matthias Wohlmuth (matthias) 

Attached to Project - Dune
Summary - Multiple definition error in dune/istl/supermatrix.hh
Task Type - Bug Report
Category - Solver
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Medium
Priority - Normal
Reported Version - SVN (pre2.3)
Due in Version - Undecided
Due Date - Undecided
Details - In the current trunk, several static consts such as 

static const Dtype_t GetSuperLUType<double>::type=SLU_D;

are both declared and defined in <dune/istl/supermatrix.hh>

This leads to multiple definition errors if the file is included by several cc files (for example by another dune-based library). 

:(.rodata+0x988): multiple definition of `Dune::GetSuperLUType<double>::type'
:(.rodata+0x3b0): first defined here
:(.rodata+0x98c): multiple definition of `Dune::GetSuperLUType<float>::type'
:(.rodata+0x3b4): first defined here
:(.rodata+0x990): multiple definition of `Dune::GetSuperLUType<std::complex<double> >::type'
:(.rodata+0x3b8): first defined here
:(.rodata+0x994): multiple definition of `Dune::GetSuperLUType<std::complex<float> >::type'
:(.rodata+0x3bc): first defined here
:(.rodata+0xa38): multiple definition of `Dune::GetSuperLUType<double>::type'
:(.rodata+0x3b0): first defined here
:(.rodata+0xa3c): multiple definition of `Dune::GetSuperLUType<float>::type'
:(.rodata+0x3b4): first defined here
:(.rodata+0xa40): multiple definition of `Dune::GetSuperLUType<std::complex<double> >::type'
:(.rodata+0x3b8): first defined here
:(.rodata+0xa44): multiple definition of `Dune::GetSuperLUType<std::complex<float> >::type'
:(.rodata+0x3bc): first defined here
:(.rodata+0x360): multiple definition of `Dune::GetSuperLUType<double>::type'
:(.rodata+0x3b0): first defined here
:(.rodata+0x364): multiple definition of `Dune::GetSuperLUType<float>::type'
:(.rodata+0x3b4): first defined here
:(.rodata+0x368): multiple definition of `Dune::GetSuperLUType<std::complex<double> >::type'
:(.rodata+0x3b8): first defined here
:(.rodata+0x36c): multiple definition of `Dune::GetSuperLUType<std::complex<float> >::type'
:(.rodata+0x3bc): first defined here


More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1123

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list