[Dune] Strange dune-common compilation error

Oliver Sander sander at igpm.rwth-aachen.de
Thu Sep 4 12:16:08 CEST 2014


Does your code start with #include "config.h" ?  It should.

Am 04.09.2014 12:15, schrieb Aleksejs Fomins:
> 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
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140904/b012d449/attachment.pgp>


More information about the Dune mailing list