Using GTK in a C++ project



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" ?

Thanx in advance,
-- Thomas NOEL <noel@int-evry.fr>



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