#142 Can't use dgfparser for Alberta and ALU at once
Metadata
Property | Value |
---|---|
Reported by | Oliver Sander (oliver.sander@tu-dresden.de) |
Reported at | Jul 10, 2006 13:30 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Last edited at | Jul 12, 2006 07:34 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Jul 14, 2006 09:50 |
Closed in version | 1.0 |
Resolution | Not a bug |
Comment |
Description
I'd like to have ALUGrid and AlbertaGrid together in one executable. For that I use
#include "config.h"
#include <dune/grid/io/file/dgfparser/dgfalu.hh> #include <dune/grid/io/file/dgfparser/dgfalberta.hh>
int main() { Dune::ALU3dGrid<3,3,Dune::tetra>* alu3dGrid = Dune::MacroGrid("kurbelwelle.dgf", -1); Dune::AlbertaGrid<3,3>* albertaGrid = Dune::MacroGrid("kurbelwelle.dgf", -1); }
But this doesn't compile. The linker (the one that comes with gcc-4.1) issues
uggridtest-uggridtest.o: In function _ZN4Dune9MacroGridcvPT_INS_9ALU3dGridILi3ELi3ELNS_20ALU3dGridElementTypeE4EEEEEv':/export/local-1/daten/users/sander/dune/dune-grid/dune/grid/io/file/dgfparser/dgfparser.hh:104: undefined reference to
Dune::MacroGrid::Impl<Dune::ALU3dGrid<3, 3, (Dune::ALU3dGridElementType)4> >::generate(Dune::MacroGrid&, char const*, int)'
collect2: ld returned 1 exit status