I'm sorry. I thought you were monitoring the bug report. This was fixed last night[1]. See the bug report[2], which contains a link to the patch.
Best regards. [1] Right before Portugal's 7-1 victory against Russia ;-) [2] http://bugzilla.gnome.org/show_bug.cgi?id=155304 Qui, 2004-10-14 �s 09:48 +0200, Niklas Volbers escreveu: > I have played around a little with the problem and got the following result: > > This first sample code in pure C will work: > > <SNIP> > /* test.c */ > > #include <pygobject.h> > > int main() { > printf("Hello GTK"); > } > </SNIP> > > compiled with: > gcc `pkg-config --cflags pygtk-2.0` -I/usr/include/python2.3 > > The second sample code in C++ will not work: > > <SNIP2> > // test.cpp > #include <cstring> > #include <cerrno> > #include <cstdio> > #include <iostream> > #include <cmath> > #include <utility> > #include <pygobject.h> > > int main() { > std::cout << "Hello GTK" << std::cout; > } > </SNIP2> > > compiled with: > g++ `pkg-config --cflags pygtk-2.0` -I/usr/include/python2.3 test.cpp > and it will produce the following error message: > > <SNIP3> > python2.3 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:850:1: warning: "_POSIX_C_SOURCE" redefined > In file included from /usr/include/string.h:26, > from /usr/include/c++/3.3.4/cstring:51, > from test.cpp:2: > /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:128: error: parse error before `typename' > /usr/include/pygtk-2.0/pygobject.h:135: error: parse error before `typename' > </SNIP3> > > Next I tried to insert the macros G_BEGIN_DECLS and G_END_DECLS into > /usr/include/pygtk-2.0/pygobject.h > and it will produce the following error message: > I did so at the following positions > > <SNIP5>and it will produce the following error message: > /* -*- Mode: C; c-basic-offset: 4 -*- */ > #ifndef _PYGOBJECT_H_ > #define _PYGOBJECT_H_ > > #include <Python.h> > > #include <glib.h> > #include <glib-object.h> > > G_BEGIN_DECLS > </SNIP5> > > <SNIP6> > #endif /* !_INSIDE_PYGOBJECT_ */ > > G_END_DECLS > > #endif /* !_PYGOBJECT_H_ */ > </SNIP6> > > But... It still won't work and will produce the same error message (with line > numbers shifted by 2 of course). > > If you have some idea what to try next, please tell me... > > Best regards, > > Niklas Volbers > > __________________________________________________________ > Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. > weltweit telefonieren! http://freephone.web.de/?mc=021201 > -- Gustavo J. A. M. Carneiro <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> The universe is always one step beyond logic.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
