Re: My First GTK Program
- From: Mikael Hallendal <micke codefactory se>
- To: Srinivas Nayak <nayaksrinivas yahoo com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: My First GTK Program
- Date: 17 Apr 2001 19:06:39 +0200
Hi!
The h-file needed is in glib_prefix/lib/glib/include. gtk-config
--cflags should include it.
You can type gtk-config --cflags and glib-config --cflags and compare
the outputs (are all the directories from the output of glib-config
included in the output of gtk-config?)
If not try to add `glib-config --cflags --libs` to the compileline
aswell.
Regards/
Mikael Hallendal
On 17 Apr 2001 09:58:52 -0700, Srinivas Nayak wrote:
Friends can anybody knowing GTK help me out.
i complied this program whose source code is given
below. the command that i gave was
gcc base.c -o base `gtk-config --cflags --libs`
but all i got was this message
In file included from /usr/include/gdk/gdktypes.h
In file included from /usr/include/gdk/gdk.h
In file included from /usr/include/gdk/gtk.h
glibconfig.h No such file or Directory.
can any one tell me how to compile my first GTK
program
Thanking you all In anticipation
Srinivas Nayak
------------------------------------------
/* example-start base base.c */
#include <gtk/gtk.h>
int main( int argc,
char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return(0);
}
/* example-end */
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Mikael Hallendal micke codefactory se
CodeFactory AB http://www.codefactory.se/
Office: +46 (0)8 - 587 583 05 Cell: +46 (0)709 - 718 918
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]