[Dune] Strange dune-common compilation error
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Thu Sep 4 12:15:16 CEST 2014
Dear Dune,
I have just changed some functionality like constructing simplex
geometries and checking if an element is simplex using geometry types.
Basically, I have lines of code like
if ((refElement_->type()).isSimplex()) { /* do sth */ }
and
Dune::GeometryType faceGeometry;
faceGeometry.makeSimplex(2);
scattered around the code.
I have just compiled (make check) the test files in the
dune/geometry/test, and get the following error
--------------------------------------------------------
mpicxx -std=c++11 -DHAVE_CONFIG_H -I. -I../../..
-I/home/fomins/gitwork/hades-github-lspr-ag/dune-common
-I/home/fomins/gitwork/hades-github-lspr-ag/dune-common -I../../..
-DMPICH_IGNORE_CXX_SEEK -O2 -g0 -DHAVE_SUPERLU_DIST
-I/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/SRC
-DMPICH_IGNORE_CXX_SEEK -O2 -g0 --no-strict-aliasing -MT
test-curvilinearelementinterpolation.o -MD -MP -MF
.deps/test-curvilinearelementinterpolation.Tpo -c -o
test-curvilinearelementinterpolation.o
test-curvilinearelementinterpolation.cc
In file included from ../../../dune/geometry/referenceelements.hh:11:0,
from
../../../dune/geometry/polynomialinterpolation/curvilinearelementinterpolator.hh:24,
from test-curvilinearelementinterpolation.cc:9:
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/nullptr.hh:29:1:
error: expected ‘;’ after class definition
} nullptr = {}; // and whose name is nullptr
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/nullptr.hh:29:1:
error: qualifiers can only be specified for objects and functions
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/nullptr.hh:29:3:
error: expected unqualified-id before ‘nullptr’
} nullptr = {}; // and whose name is nullptr
--------------------------------------------------------
Do you think there could be a typo in the nullptr.hh class?
I have not edited anything in dune/common/ and I have not edited the
referenceelements.hh either.
Thank you,
Aleksejs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140904/83c54688/attachment.sig>
More information about the Dune
mailing list