From: Humufr <hu...@ya...> - 2004-10-13 04:58:02
|
Hi John, I'm using a debian linux with gcc 3.3.5, pygtk 2.4.0, precompiled It's definitively a problem with pygtk2.4 because I have no problem to compile with 2.0 (from testing). Morever the problem comes only with the compilation. If I compile matplotlib with pygtk 2.2.0 I have no problem to use matplotlib even if I'm upgrading pygtk to 2.4.0. The problem seems to be in the header who comes from pygtk but I know nothing in these sort of file so I can't debug it. Thanks, Nicolas > gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-1) gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.3 -c test.cpp In file included from /usr/include/python2.3/Python.h:8, from /usr/include/pygtk-2.0/pygobject.h:5, from test.cpp:8: /usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/include/string.h:26, from /usr/include/c++/3.3/cstring:51, from test.cpp:1: /usr/include/features.h:131:1: warning: this is the location of the previous definition In file included from test.cpp:8: /usr/include/pygtk-2.0/pygobject.h:140: error: parse error before `typename' /usr/include/pygtk-2.0/pygobject.h:147: error: parse error before `typename' and when I put the pkg-config inside the line a obtain exactly the same thing. gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.3 `pkg-config-c test.cpp `pkg-config gruel@wheeloftime:~/Matplotlib$ gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.3 `pkg-config pygtk-2.0` -c test.cpp In file included from /usr/include/python2.3/Python.h:8, from /usr/include/pygtk-2.0/pygobject.h:5, from test.cpp:8: /usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/include/string.h:26, from /usr/include/c++/3.3/cstring:51, from test.cpp:1: /usr/include/features.h:131:1: warning: this is the location of the previous definition In file included from test.cpp:8: /usr/include/pygtk-2.0/pygobject.h:140: error: parse error before `typename' /usr/include/pygtk-2.0/pygobject.h:147: error: parse error before `typename' |