[Dune] Can't compile with UG_NAMESPACE
Dragan Vidovic
vitkecar at gmail.com
Mon Oct 12 22:35:03 CEST 2009
Hi all
I can't compile dune-grid with UG support. The last version which
compiles with UG support was the one from April 29 this year. The
version from April 30 contains new versions of
dune-grid/grid/uggrid.hh and dune-grid/grid/uggrid/ugwrapper.hh, and
the former has
static UG_NS< UG_DIM >::Node* PFirstNode(const UG_NS< UG_DIM
>::Grid* grid) {
using UG_NAMESPACE ::PrioHGhost;
using UG_NAMESPACE ::PrioVGhost;
using UG_NAMESPACE ::PrioVHGhost;
using UG_NAMESPACE ::PrioMaster;
using UG_NAMESPACE ::PrioBorder;
using UG_NAMESPACE ::ELEMENT_LIST;
using UG_NAMESPACE ::NODE_LIST;
return PFIRSTNODE(grid);
}
and similar macros instead of
static UG_NS< UG_DIM >::Node* PFirstNode(const UG_NS< UG_DIM
>::Grid* grid) {
using UG::PrioHGhost;
using UG::PrioVGhost;
using UG::PrioVHGhost;
using UG::PrioMaster;
using UG::PrioBorder;
using UG::ELEMENT_LIST;
using UG::NODE_LIST;
return PFIRSTNODE(grid);
}
I use CONFIGURE_FLAGS="--with-ug=/usr/local/UG --with-grid-dim=3
--with-grid-type=UGGRID".
The following is the (long) list of error messages:
Making all in uggrid
make[3]: Entering directory
`/usr/local/src/dune-svn-2009-10-07/dune-grid/grid/uggrid'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -std=c++0x
-DHAVE_CONFIG_H -I. -I../.. -I/usr/local/src/dune/dune-common -I../..
-I/usr/local/src/dune/dune-common -I../.. -I/usr/local/UG/include
-DENABLE_UG -g -O2 -MT libuggrid_la-uggrid.lo -MD -MP -MF
.deps/libuggrid_la-uggrid.Tpo -c -o libuggrid_la-uggrid.lo `test -f
'uggrid.cc' || echo './'`uggrid.cc
libtool: compile: g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../..
-I/usr/local/src/dune/dune-common -I../..
-I/usr/local/src/dune/dune-common -I../.. -I/usr/local/UG/include
-DENABLE_UG -g -O2 -MT libuggrid_la-uggrid.lo -MD -MP -MF
.deps/libuggrid_la-uggrid.Tpo -c uggrid.cc -o libuggrid_la-uggrid.o
In file included from ../../dune/grid/uggrid.hh:44,
from uggrid.cc:5:
../../dune/grid/uggrid/ugwrapper.hh:39: error: ‘PrioNone’ is not a
member of ‘UG::D2’
../../dune/grid/uggrid/ugwrapper.hh:40: error: ‘PrioMaster’ is not a
member of ‘UG::D2’
../../dune/grid/uggrid/ugwrapper.hh:41: error: ‘PrioBorder’ is not a
member of ‘UG::D2’
../../dune/grid/uggrid/ugwrapper.hh:43: error: ‘PrioHGhost’ is not a
member of ‘UG::D2’
../../dune/grid/uggrid/ugwrapper.hh:44: error: ‘PrioVGhost’ is not a
member of ‘UG::D2’
../../dune/grid/uggrid/ugwrapper.hh:45: error: ‘PrioVHGhost’ is not a
member of ‘UG::D2’
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D2::node* Dune::UG_NS<2>::PFirstNode(const UG::D2::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:266: error: ‘UG::D2::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:267: error: ‘UG::D2::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:268: error: ‘UG::D2::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:269: error: ‘UG::D2::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:270: error: ‘UG::D2::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:271: error: ‘UG::D2::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:272: error: ‘UG::D2::NODE_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D2::node* Dune::UG_NS<2>::FirstNode(UG::D2::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:280: error: ‘UG::D2::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:281: error: ‘UG::D2::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:282: error: ‘UG::D2::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:283: error: ‘UG::D2::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:284: error: ‘UG::D2::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:285: error: ‘UG::D2::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:286: error: ‘UG::D2::NODE_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D2::element* Dune::UG_NS<2>::PFirstElement(const UG::D2::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:294: error: ‘UG::D2::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:295: error: ‘UG::D2::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:296: error: ‘UG::D2::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:297: error: ‘UG::D2::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:298: error: ‘UG::D2::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:299: error: ‘UG::D2::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:300: error: ‘UG::D2::NODE_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D2::element* Dune::UG_NS<2>::FirstElement(UG::D2::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:308: error: ‘UG::D2::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:309: error: ‘UG::D2::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:310: error: ‘UG::D2::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:311: error: ‘UG::D2::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:312: error: ‘UG::D2::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:313: error: ‘UG::D2::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
void Dune::UG_NS<2>::RemoveDomain(const char*)’:
../../dune/grid/uggrid/ugwrapper.hh:888: error: ‘RemoveDomain’ is not
a member of ‘UG::D2’
In file included from /usr/local/UG/include/gm.h:61,
from ../../dune/grid/uggrid/ugincludes.hh:13,
from ../../dune/grid/uggrid.hh:70,
from uggrid.cc:5:
/usr/local/UG/include/pargm.h: At global scope:
/usr/local/UG/include/pargm.h:69: error: multiple definition of ‘enum
UG::Priorities’
/usr/local/UG/include/pargm.h:69: error: previous definition here
/usr/local/UG/include/pargm.h:71: error: conflicting declaration ‘PrioNone’
/usr/local/UG/include/pargm.h:71: error: ‘UG::PrioNone’ has a previous
declaration as ‘UG::Priorities UG::PrioNone’
/usr/local/UG/include/pargm.h:72: error: conflicting declaration ‘PrioHGhost’
/usr/local/UG/include/pargm.h:72: error: ‘UG::PrioHGhost’ has a
previous declaration as ‘UG::Priorities UG::PrioHGhost’
/usr/local/UG/include/pargm.h:73: error: conflicting declaration ‘PrioVGhost’
/usr/local/UG/include/pargm.h:73: error: ‘UG::PrioVGhost’ has a
previous declaration as ‘UG::Priorities UG::PrioVGhost’
/usr/local/UG/include/pargm.h:74: error: conflicting declaration ‘PrioVHGhost’
/usr/local/UG/include/pargm.h:74: error: ‘UG::PrioVHGhost’ has a
previous declaration as ‘UG::Priorities UG::PrioVHGhost’
/usr/local/UG/include/pargm.h:75: error: conflicting declaration ‘PrioBorder’
/usr/local/UG/include/pargm.h:75: error: ‘UG::PrioBorder’ has a
previous declaration as ‘UG::Priorities UG::PrioBorder’
/usr/local/UG/include/pargm.h:76: error: conflicting declaration ‘PrioMaster’
/usr/local/UG/include/pargm.h:76: error: ‘UG::PrioMaster’ has a
previous declaration as ‘UG::Priorities UG::PrioMaster’
/usr/local/UG/include/pargm.h:80: error: multiple definition of ‘enum
UG::DynamicListId’
/usr/local/UG/include/pargm.h:80: error: previous definition here
/usr/local/UG/include/pargm.h:80: error: conflicting declaration ‘ELEMENT_LIST’
/usr/local/UG/include/pargm.h:80: error: ‘UG::ELEMENT_LIST’ has a
previous declaration as ‘UG::DynamicListId UG::ELEMENT_LIST’
/usr/local/UG/include/pargm.h:81: error: conflicting declaration ‘NODE_LIST’
/usr/local/UG/include/pargm.h:81: error: ‘UG::NODE_LIST’ has a
previous declaration as ‘UG::DynamicListId UG::NODE_LIST’
/usr/local/UG/include/pargm.h:82: error: conflicting declaration ‘VECTOR_LIST’
/usr/local/UG/include/pargm.h:82: error: ‘UG::VECTOR_LIST’ has a
previous declaration as ‘UG::DynamicListId UG::VECTOR_LIST’
/usr/local/UG/include/pargm.h:83: error: conflicting declaration ‘VERTEX_LIST’
/usr/local/UG/include/pargm.h:83: error: ‘UG::VERTEX_LIST’ has a
previous declaration as ‘UG::DynamicListId UG::VERTEX_LIST’
/usr/local/UG/include/pargm.h:166: error: conflicting declaration ‘MAX_PRIOS’
/usr/local/UG/include/pargm.h:166: error: ‘UG::MAX_PRIOS’ has a
previous declaration as ‘UG::<anonymous enum> UG::MAX_PRIOS’
/usr/local/UG/include/pargm.h:167: error: conflicting declaration
‘ELEMENT_PRIOS’
/usr/local/UG/include/pargm.h:167: error: ‘UG::ELEMENT_PRIOS’ has a
previous declaration as ‘UG::<anonymous enum> UG::ELEMENT_PRIOS’
/usr/local/UG/include/pargm.h:168: error: conflicting declaration ‘NODE_PRIOS’
/usr/local/UG/include/pargm.h:168: error: ‘UG::NODE_PRIOS’ has a
previous declaration as ‘UG::<anonymous enum> UG::NODE_PRIOS’
/usr/local/UG/include/pargm.h:169: error: conflicting declaration ‘VECTOR_PRIOS’
/usr/local/UG/include/pargm.h:169: error: ‘UG::VECTOR_PRIOS’ has a
previous declaration as ‘UG::<anonymous enum> UG::VECTOR_PRIOS’
/usr/local/UG/include/pargm.h:170: error: conflicting declaration ‘VERTEX_PRIOS’
/usr/local/UG/include/pargm.h:170: error: ‘UG::VERTEX_PRIOS’ has a
previous declaration as ‘UG::<anonymous enum> UG::VERTEX_PRIOS’
/usr/local/UG/include/pargm.h:173: error: conflicting declaration
‘MAX_LISTPARTS’
/usr/local/UG/include/pargm.h:173: error: ‘UG::MAX_LISTPARTS’ has a
previous declaration as ‘UG::<anonymous enum> UG::MAX_LISTPARTS’
/usr/local/UG/include/pargm.h:174: error: conflicting declaration
‘ELEMENT_LISTPARTS’
/usr/local/UG/include/pargm.h:174: error: ‘UG::ELEMENT_LISTPARTS’ has
a previous declaration as ‘UG::<anonymous enum> UG::ELEMENT_LISTPARTS’
/usr/local/UG/include/pargm.h:175: error: conflicting declaration
‘NODE_LISTPARTS’
/usr/local/UG/include/pargm.h:175: error: ‘UG::NODE_LISTPARTS’ has a
previous declaration as ‘UG::<anonymous enum> UG::NODE_LISTPARTS’
/usr/local/UG/include/pargm.h:176: error: conflicting declaration
‘VECTOR_LISTPARTS’
/usr/local/UG/include/pargm.h:176: error: ‘UG::VECTOR_LISTPARTS’ has a
previous declaration as ‘UG::<anonymous enum> UG::VECTOR_LISTPARTS’
/usr/local/UG/include/pargm.h:177: error: conflicting declaration
‘VERTEX_LISTPARTS’
/usr/local/UG/include/pargm.h:177: error: ‘UG::VERTEX_LISTPARTS’ has a
previous declaration as ‘UG::<anonymous enum> UG::VERTEX_LISTPARTS’
In file included from /usr/local/UG/include/udm.h:38,
from /usr/local/UG/include/formats.h:37,
from ../../dune/grid/uggrid/ugincludes.hh:21,
from ../../dune/grid/uggrid.hh:70,
from uggrid.cc:5:
/usr/local/UG/include/sm.h:68: error: conflicting declaration ‘typedef
struct UG::SPARSE_MATRIX UG::SPARSE_MATRIX’
/usr/local/UG/include/sm.h:68: error: ‘UG::SPARSE_MATRIX’ has a
previous declaration as ‘typedef struct UG::SPARSE_MATRIX
UG::SPARSE_MATRIX’
In file included from ../../dune/grid/uggrid.hh:75,
from uggrid.cc:5:
../../dune/grid/uggrid/ugwrapper.hh:39: error: ‘PrioNone’ is not a
member of ‘UG::D3’
../../dune/grid/uggrid/ugwrapper.hh:40: error: ‘PrioMaster’ is not a
member of ‘UG::D3’
../../dune/grid/uggrid/ugwrapper.hh:41: error: ‘PrioBorder’ is not a
member of ‘UG::D3’
../../dune/grid/uggrid/ugwrapper.hh:43: error: ‘PrioHGhost’ is not a
member of ‘UG::D3’
../../dune/grid/uggrid/ugwrapper.hh:44: error: ‘PrioVGhost’ is not a
member of ‘UG::D3’
../../dune/grid/uggrid/ugwrapper.hh:45: error: ‘PrioVHGhost’ is not a
member of ‘UG::D3’
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D3::node* Dune::UG_NS<3>::PFirstNode(const UG::D3::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:266: error: ‘UG::D3::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:267: error: ‘UG::D3::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:268: error: ‘UG::D3::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:269: error: ‘UG::D3::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:270: error: ‘UG::D3::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:271: error: ‘UG::D3::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:272: error: ‘UG::D3::NODE_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D3::node* Dune::UG_NS<3>::FirstNode(UG::D3::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:280: error: ‘UG::D3::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:281: error: ‘UG::D3::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:282: error: ‘UG::D3::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:283: error: ‘UG::D3::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:284: error: ‘UG::D3::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:285: error: ‘UG::D3::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:286: error: ‘UG::D3::NODE_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D3::element* Dune::UG_NS<3>::PFirstElement(const UG::D3::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:294: error: ‘UG::D3::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:295: error: ‘UG::D3::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:296: error: ‘UG::D3::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:297: error: ‘UG::D3::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:298: error: ‘UG::D3::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:299: error: ‘UG::D3::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:300: error: ‘UG::D3::NODE_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
UG::D3::element* Dune::UG_NS<3>::FirstElement(UG::D3::grid*)’:
../../dune/grid/uggrid/ugwrapper.hh:308: error: ‘UG::D3::PrioHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:309: error: ‘UG::D3::PrioVGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:310: error: ‘UG::D3::PrioVHGhost’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:311: error: ‘UG::D3::PrioMaster’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:312: error: ‘UG::D3::PrioBorder’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh:313: error: ‘UG::D3::ELEMENT_LIST’
has not been declared
../../dune/grid/uggrid/ugwrapper.hh: In static member function ‘static
void Dune::UG_NS<3>::RemoveDomain(const char*)’:
../../dune/grid/uggrid/ugwrapper.hh:888: error: ‘RemoveDomain’ is not
a member of ‘UG::D3’
make[3]: *** [libuggrid_la-uggrid.lo] Error 1
make[3]: Leaving directory
`/usr/local/src/dune-svn-2009-10-07/dune-grid/grid/uggrid'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/dune-svn-2009-10-07/dune-grid/grid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/dune-svn-2009-10-07/dune-grid'
make: *** [all] Error 2
--- Failed to build dune-grid ---
Any suggestions?
Dragan
More information about the Dune
mailing list