Hello,
I am getting this strange compile error with deal.II subversion:
======================debug======MT==
numerics/derivative_approximation.cc In file included
from
/home/tyoung/research.code/deal.II/source/numerics/derivative_approximation.cc:23:
/home/tyoung/research.code/deal.II/include/deal.II/grid/grid_tools.h:79:
error: ‘spacedim’ is not a
type /home/tyoung/research.code/deal.II/include/deal.II/grid/grid_tools.h:79:
error: expected ‘,’ or ‘...’ before ‘>’
token /home/tyoung/research.code/deal.II/include/deal.II/grid/grid_tools.h:79:
error: parse error in template argument
list /home/tyoung/research.code/deal.II/include/deal.II/grid/grid_tools.h:79:
error: expected primary-expression at end of
input /home/tyoung/research.code/deal.II/include/deal.II/grid/grid_tools.h:79:
error: default argument missing for parameter 3 of ‘static double
dealii::GridTools::volume(const dealii::Triangulation<dim, spacedim>&,
const dealii::Mapping<dim, spacedim>&, int)’ make[1]: ***
[/home/tyoung/research.code/deal.II/lib/debug/numerics_derivative_approximation.o]
Error 1 make[1]: Leaving directory
`/home/tyoung/research.code/deal.II/source' make: *** [debug] Error 2
The offending line (79) is:
template <int dim, int spacedim>
static
double volume (const Triangulation<dim,spacedim> &tria,
const Mapping<dim,spacedim> &mapping =
StaticMappingQ1<dim,spacedim>::mapping);
I have the archaic gcc -v
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4).
This problem does not occur with a later gcc -v; namely:
gcc version 4.4.5 (Debian 4.4.5-8)
so I guess this is gcc4.3 specific (maybe earlier too?).
Any ideas what goes wrong here?
Thanks in advance.
Best,
Toby
--
Toby D. Young
Assistant Professor Philosophy & Physics
Polish Academy of Sciences
www: http://www.ippt.gov.pl/~tyoung
skype: stenografia
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii