Hi all, I have a problem about how to embed "gtk.h" library into existing work. My existing work is written in C programming language and I use automake to compile it. At this point, I want to create a graphical user interface (GUI) with GTK+ for my existing work.
For example, in GTK+, if I want to compile a sample code named "helloworld03.c", I need to use the following command to compile it: gcc -Wall -g helloworld03.c -o helloworld03 `pkg-config --cflags --libs gtk+-2.0` ---------------------------------------------------------------------------------- In this case, "pkg-config" is the tool to handle all libraries and include files as follows: $ pkg-config --cflags --libs gtk+-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 ---------------------------------------------------------------------------------- Note that, by using GTK+, I use only few include files such as #include <gtk/gtk.h> #include <glib.h> ---------------------------------------------------------------------------------- In order to use GTK as a GUI for my existing work in C language, I need to add "gtk.h" and "glib.h" to the include files on my existing work. However, I don't know how to embed these two include files properly into the makefile of existing work. Do you have the experience for that? If yes, please give me a shot for help. Regards, Monchai _________________________________________________________________ Windows Live: Keep your friends up to date with what you do online. http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009 _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list