Re: Getting start



hs_gtk wrote:
> 
> Hello,
>  I compiled this c file,It is from "GTK+/Gnome Application Development".
> $ gcc 001.c
> and i got the follow report:
> In file included from /usr/include/gdk/gdktypes.h:33
> In file included from /usr/include/gdk/gdk.h:31
> In file included from /usr/include/gdk/gtk.h:31
>                  from 001.c:1:
> /usr/include/glib.h:66: glibconfig.h: No such file or directory.
> Can anyone help me?

You need to put in compiler flags to tell gcc where the gnome/gtk header
files/libraries can be found. 

gcc 001.c `gtk-config --cflags --libs gtk`  

is the command you should be using.

Better yet, RTFM. You've got the book, so _read it_. The relevant
section (online) is at http://developer.gnome.org/doc/GGAD/cha-gtk.html

Russ %-)

-- 
-----------------------------------------------------------
Russell Keith-Magee
PhD Research Student
School of Computing, Curtin University of Technology
email: keithmag@cs.curtin.edu.au OR russ.magee@computer.org
WWW:   http://www.cs.curtin.edu.au/~keithmag
Ph: +61 8 9266 2129    FAX +61 8 9266 2819
-----------------------------------------------------------
One FISHWICH coming up!!




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