[167] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Using GTK in a C++ project
daemon@ATHENA.MIT.EDU (Otto Hammersmith)
Thu May 15 18:22:21 1997
Date: Thu, 15 May 1997 18:22:06 -0400
From: Otto Hammersmith <otto@redhat.com>
To: noel@galaxie.int-evry.fr
Cc: gtk-list@redhat.com
In-Reply-To: <9705152212.AA32600@aladin>; from Thomas NOEL on Fri, May 16, 1997 at 12:12:41AM +0200
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
On Fri, May 16, 1997 at 12:12:41AM +0200, Thomas NOEL wrote:
> Hi there,
>
> I need (want :) to use gtk in a C++ development. But it seems I'm
> stuck :
>
> g++ -V2.7.2.1 -bi386-linux -I/usr/local/gimp/include -o simple simple.c
> -L/usr/local/gimp/lib -lgtk -lgdk -lglib -L/usr/X11R6/lib -lX11 -lXext -lm
> In file included from /usr/local/gimp/include/gtk/gtkcolorsel.h:31,
> from /usr/local/gimp/include/gtk/gtk.h:33,
> from simple.c:1:
> /usr/local/gimp/include/gtk/gtkentry.h:64: parse error before `delete'
> make: *** [simple] Error 1
>
> Arghhh... 'delete' is a reserved word in C++, so what am I supposed
> to do ? Pray ? Replace "delete" with "no_conflict_delete" ?
Precisely that, replace delete with something. It's just a header
file, so as long as you have the gtk libraries built already, it won't
affect anything... well, beside letting your program compile.
(Though, I'm beginning to think it's a consipracy that the gtk
developers don't want you using C++ with gtk... mind you, it's a
conspiracy that I agree with. :)
--
-Otto.
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null