From: Rich D. <dr...@in...> - 2004-11-17 02:23:08
|
Hello, Several users (including Humufr and Niklas Volbers) have reported on this list a compile error building matplotlib with pygtk. The error looks something like this: In file included from src/_gtkagg.cpp:8: /usr/include/pygtk-2.0/pygobject.h:124: error: parse error before `typename" /usr/include/pygtk-2.0/pygobject.h:131: error: parse error before `typename" I also experienced this problem. It appears to be some sort of namespace collision on the token "typename" (what this is colliding with isn't clear). By changing "typename" to "typname" or some other spelling in /usr/include/pygtk-2.0/pygobject.h I was then able to build matplotlib successfully. If someone knows what is causing this and has a better solution, please advise. Perhaps it has something to do with GCC 3.4.x and that particular pygtk release. Rich Drewes |
From: Steve C. <ste...@ya...> - 2004-11-17 03:36:39
|
On Tue, 2004-11-16 at 18:23 -0800, Rich Drewes wrote: > Hello, > > Several users (including Humufr and Niklas Volbers) have reported on this > list a compile error building matplotlib with pygtk. The error looks > something like this: > > In file included from src/_gtkagg.cpp:8: > /usr/include/pygtk-2.0/pygobject.h:124: error: parse error before > `typename" > /usr/include/pygtk-2.0/pygobject.h:131: error: parse error before > `typename" > > I also experienced this problem. It appears to be some sort of namespace > collision on the token "typename" (what this is colliding with isn't > clear). By changing "typename" to "typname" or some other spelling in > /usr/include/pygtk-2.0/pygobject.h I was then able to build matplotlib > successfully. > > If someone knows what is causing this and has a better solution, please > advise. Perhaps it has something to do with GCC 3.4.x and that particular > pygtk release. > > Rich Drewes The problem is a bug in old versions of PyGTK, upgrading to a later version (2.4.1 I believe) will fix it. Regards Steve > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: John H. <jdh...@ac...> - 2004-11-17 22:54:13
|
>>>>> "Rich" == Rich Drewes <dr...@in...> writes: Rich> Hello, Several users (including Humufr and Niklas Volbers) Rich> have reported on this list a compile error building Rich> matplotlib with pygtk. The error looks something like this: Rich> In file included from src/_gtkagg.cpp:8: Rich> /usr/include/pygtk-2.0/pygobject.h:124: error: parse error Rich> before `typename" /usr/include/pygtk-2.0/pygobject.h:131: Rich> error: parse error before `typename" Rich> I also experienced this problem. It appears to be some sort Rich> of namespace collision on the token "typename" (what this is Rich> colliding with isn't clear). By changing "typename" to Rich> "typname" or some other spelling in Rich> /usr/include/pygtk-2.0/pygobject.h I was then able to build Rich> matplotlib successfully. Don't do that! That looks brtually hackish. See http://matplotlib.sourceforge.net/faq.html#PYGTK24 |
From: Niklas V. <mit...@we...> - 2004-11-18 06:19:59
|
Hello! The problem was a problem with pygtk 2.4.0 and was caused by a parameter name "typename" which for C++ is also a keyword. Any C++ application using pygtk was affected and agg (which matplotlib is using) is written in C++. The fix to this problem was (among other few changes) to rename "typename" to "_typename", which was done in CVS shortly after pygtk 2.4.0 was released. In conclusion, just download pygtk 2.4.1 from pygtk.org and it will work! Niklas Volbers. Rich Drewes wrote: > Hello, > > Several users (including Humufr and Niklas Volbers) have reported on this > list a compile error building matplotlib with pygtk. The error looks > something like this: > > In file included from src/_gtkagg.cpp:8: > /usr/include/pygtk-2.0/pygobject.h:124: error: parse error before > `typename" > /usr/include/pygtk-2.0/pygobject.h:131: error: parse error before > `typename" > > I also experienced this problem. It appears to be some sort of namespace > collision on the token "typename" (what this is colliding with isn't > clear). By changing "typename" to "typname" or some other spelling in > /usr/include/pygtk-2.0/pygobject.h I was then able to build matplotlib > successfully. > > If someone knows what is causing this and has a better solution, please > advise. Perhaps it has something to do with GCC 3.4.x and that particular > pygtk release. > > Rich Drewes > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |