[dune-pdelab] Using gcc4.1 to compile dune-pdelab
Steffen Müthing
steffen.muething at ipvs.uni-stuttgart.de
Thu May 16 11:38:21 CEST 2013
Hi Jizhou,
as Oliver already told you, PDELab should in theory still work with GCC 4.0, but very few people have
those old compilers available for testing (the oldest I have is GCC 4.2), so your best bet really is upgrading
to GCC 4.3+. That will also help compile times and the quality of the generated code quite a bit because
PDELab will automatically use C++11 features in some of its core data structures.
I'm a little confused about the error, though: The code you posted should be in line 93, not 97:
http://cgit.dune-project.org/repositories/dune-pdelab-howto/tree/src/convection-diffusion/rt0main.cc?id=v1.1.0#n93
Did you use the release packages or have you cloned the repository? Maybe there's some kind of version conflict
between PDELab and the Howto...
Best
Steffen
Am 15.05.2013 um 23:15 schrieb Jizhou Li:
> Hi,
> I am attempting to compile rt0main.cc in dune-pdelab-howto with the dune version 2.2.1 and dune-pdelab 1.1.0 on a cluster which can be compiled on my mac using gcc4.7.
> But, it failed to compile on the cluster with error message:
> rt0main.cc:97: error: wrong number of template arguments (2, should be 10)
>
> This refers to the line of the code: typedef Dune::PDELab::CompositeConstraintsParameters<BCType,BCTypeParam_Dummy> BCT;
>
> Also, the error message says I have use typedef outside the main(){} which is not allowed.
>
> Does those compilation error messages have something to do with the version of the compiler? The cluster currently using gcc 4.1.
> Surprisingly, the dune 2.2.1 and dune-pdelab 1.1.0 all complied with this old compiler.
> Do you think if I switch to gcc 4.3 or higher the problem will be resolved?
>
> Thanks
>
> Jizhou Li
> _______________________________________________
> dune-pdelab mailing list
> dune-pdelab at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-pdelab
Steffen Müthing
Universität Stuttgart
Institut für Parallele und Verteilte Systeme
Universitätsstr. 38
70569 Stuttgart
Tel: +49 711 685 88429
Fax: +49 711 685 88340
Email: steffen.muething at ipvs.uni-stuttgart.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20130516/fda4845b/attachment.sig>
More information about the dune-pdelab
mailing list