I inculded the following in the Makefile(.pro file actually) to compile my application with GTK
QMAKE_CXXFLAGS += "`pkg-config --cflags gtk+-2.0`" LIBS += "`pkg-config --libs gtk+-2.0`" This works for a sample program for GTK+ but not for my QT application. Thanks, Raj 2010/6/6 David Nečas <[email protected]> > On Fri, Jun 04, 2010 at 06:42:43PM +0530, Rajendra Prasad Murakonda wrote: > > Due to run flash on webkit I need to call gtk_init from my application > once > > due to some bug in gtk. I made a sample program in gtk and compiled it > > successfully. But when I try to compile it with my application following > the > > same procedure, I get the following error. > > > > == > > n file included from /usr/include/gtk-2.0/gtk/gtk. > > h:44, from src/main.cpp:3: > > /usr/include/gtk-2.0/gtk/gtkbindings.h:76: error: expected unqualified-id > > before "protected" > > /usr/include/gtk-2.0/gtk/gtkbindings.h:76: error: abstract declarator > > `GtkBindingSignal*' used as declaration > > /usr/include/gtk-2.0/gtk/gtkbindings.h:76: error: expected `;' before > > "protected" > > == > > > > Any idea what went wrong. Any help is much appreciated. > > First, you should have said you compile it as C++. Second, it is not > clear what you do: there is no `protected' in gtkbindings.h (at least > not in the current version); most likely some identifier that occurs in > gtkbindings.h was #defined to something weird in another header. But > only you can find out what, why and where in the other headers you > include. > > Yeti > >
_______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
