On 12/4/05, Daryl Lee <[EMAIL PROTECTED]> wrote:
> Have you wrapped your '#include <gtk.h>' inside an 'extern "C"', a la
>
> extern "C" {
>   #include <gtk.h>
> }
I wouldn't do that as all of the headers should have:
#ifdef __cplusplus
extern "C" {
#endif
already in them at the right places.
The only diiference in the
g_signal_connect(button, "clicked", G_CALLBACK(gtk_main_quit), NULL);
is that mine would looks like
g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(gtk_main_quit), NULL);
I don't use glade though.
I also try making the void stuff explicit especially whenever I mix c
and c++, so I'd have
void blah::blah(void);
>
> In fact, all your includes of C headers need this wrapper.
They already should have them.

> On Sun, 2005-12-04 at 00:08 -0300, Tomaz Canabrava wrote:
> > hy all.
> > I'm trying to use C++ but not the gtkmm, i'm using the c - version of Gtk


--
http://dmoz.org/profiles/pollei.html
http://sourceforge.net/users/stephen_pollei/
http://www.orkut.com/Profile.aspx?uid=2455954990164098214
http://stephen_pollei.home.comcast.net/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to