[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Gtk, C++ & Trouble
- From: Stephen Pollei <stephen pollei gmail com>
- To: Daryl Lee <dlee altaregos com>, gtk app devel <gtk-app-devel-list gnome org>, Tomaz Canabrava <tumaix gmail com>
- Cc:
- Subject: Re: Gtk, C++ & Trouble
- Date: Sun, 4 Dec 2005 15:13:06 -0800
On 12/4/05, Daryl Lee <dlee altaregos com> 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/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]