Re: [gtk-list] Using GTK in a C++ project



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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]