[dune-pdelab] Using gcc4.1 to compile dune-pdelab

Oliver Sander sander at igpm.rwth-aachen.de
Thu May 16 11:18:28 CEST 2013


Hi Jizhou,
although we still officially support gcc-4.1, very few people still
use it nowadays, and hence pdelab gets very little testing with it.
If you can easily switch to gcc-4.3 or higher there is a good chance
that that will solve your problem.
best,
Oliver

Am 15.05.2013 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





More information about the dune-pdelab mailing list