[dune-fem] Error compiling DUNE-FEM module with DUNE 2.3.0

Agnese, Marco m.agnese13 at imperial.ac.uk
Mon Feb 17 12:44:03 CET 2014


Hello DUNE-FEM users,
when I try to compile DUNE-FEM with the new DUNE 2.3.0 I obtain the following error:

In file included from ../../../dune/fem/io/file/persistencemanager.hh:41:0,
                 from ../../../dune/fem/solver/timeprovider.hh:43,
                 from ../../../dune/fem/misc/femtimer.hh:44,
                 from femtimer.cc:33:
../../../dune/fem/io/file/iointerface.hh: In static member function 'static std::string Dune::Fem::IOInterface::createPath(const CommunicatorType&, const string&, const string&, int, bool)':
../../../dune/fem/io/file/iointerface.hh:336:54: error: there are no arguments to 'genFilename' that depend on a template parameter, so a declaration of 'genFilename' must be available [-fpermissive]
       std::string path = genFilename("",filename,step);
                                                      ^
../../../dune/fem/io/file/iointerface.hh:336:54: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../../dune/fem/io/file/iointerface.hh: In static member function 'static std::string Dune::Fem::IOInterface::createRecoverPath(const string&, int, const string&, int, bool)':
../../../dune/fem/io/file/iointerface.hh:369:54: error: 'genFilename' was not declared in this scope
       std::string path = genFilename("",filename,step);
                                                      ^
In file included from ../../../dune/fem/solver/timeprovider.hh:43:0,
                 from ../../../dune/fem/misc/femtimer.hh:44,
                 from femtimer.cc:33:
../../../dune/fem/io/file/persistencemanager.hh: In member function 'std::string Dune::PersistenceManager::getUniqueFileName(const string&)':
../../../dune/fem/io/file/persistencemanager.hh:327:54: error: 'genFilename' was not declared in this scope
       return genFilename( path_, tag, ++fileCounter_ );
                                                      ^
../../../dune/fem/io/file/persistencemanager.hh: In member function 'std::string Dune::PersistenceManager::getUniqueTag(const string&)':
../../../dune/fem/io/file/persistencemanager.hh:332:51: error: 'genFilename' was not declared in this scope
       return genFilename( "", tag, ++fileCounter_ );

Is there a patch to fix it? Or the only solution is to compile with -fpermessive?

Thank you very much,

Marco Agnese





More information about the dune-fem mailing list