Hi,

Attached is a patch to make Enigma (today's trunk) compiles with
gcc-4.1. It just removes three "extra qualifications" ("Foo::bar"
declarations in class "Foo").

Errors logs:
----------------------------------------------------------------
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/include/SDL -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -O2
-ffast-math -fomit-frame-pointer
-DLOCALEDIR=\"/usr/share/games/locale\" -I../lib-src/zipios++
-I../lib-src/zipios++ -I../lib-src/lua -I../lib-src/enigma-core
-I../lib-src/enet/include -I../lib-src -I../intl -c -o actors.o
actors.cc
file.hh:99: erreur: extra qualification 'enigma::GameFS::' on
member 'GameFS'
----------------------------------------------------------------
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/include/SDL -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -O2
-ffast-math -fomit-frame-pointer
-DLOCALEDIR=\"/usr/share/games/locale\" -I../lib-src/zipios++
-I../lib-src/zipios++ -I../lib-src/lua -I../lib-src/enigma-core
-I../lib-src/enet/include -I../lib-src -I../intl -c -o actors.o
actors.cc i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/include/SDL -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -O2
-ffast-math -fomit-frame-pointer
-DLOCALEDIR=\"/usr/share/games/locale\" -I../lib-src/zipios++
-I../lib-src/zipios++ -I../lib-src/lua -I../lib-src/enigma-core
-I../lib-src/enet/include -I../lib-src -I../intl -c -o client.o
client.cc
PreferenceManager.hh:74: erreur: extra qualification
'enigma::PreferenceManager::' on member 'getProperty' main.hh:181:
erreur: extra qualification 'enigma::Application::' on member
'initXerces'
----------------------------------------------------------------

Thanks,

-- 
TGL.
Index: src/file.hh
===================================================================
--- src/file.hh	(révision 99)
+++ src/file.hh	(copie de travail)
@@ -96,7 +96,7 @@
      */
     class GameFS {
     public:
-        GameFS::GameFS();
+        GameFS();
 
         void clear() { entries.clear(); }
                 
Index: src/main.hh
===================================================================
--- src/main.hh	(révision 99)
+++ src/main.hh	(copie de travail)
@@ -178,7 +178,7 @@
 
     private:
         void initSysDatapaths(const std::string &prefFilename);
-        void Application::initXerces();
+        void initXerces();
         void initUserDatapaths();
         std::string systemAppDataPath;    // dir path to the apps data
         std::string systemCmdDataPath;    // commandline override of systemAppDataPath
Index: src/PreferenceManager.hh
===================================================================
--- src/PreferenceManager.hh	(révision 99)
+++ src/PreferenceManager.hh	(copie de travail)
@@ -71,7 +71,7 @@
          * @param prefName  the name of the searched or new property
          * @return  the property element with the given key name.
          */
-        XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * PreferenceManager::getProperty(const char *prefName);
+        XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getProperty(const char *prefName);
 
         /**
          * checks if a property exists.
_______________________________________________
Enigma-devel mailing list
Enigma-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/enigma-devel

Reply via email to