Re: [gtk-list] compiling



On Wed, 08 Sep 1999 19:50:45 -0700, Robert Aragon wrote:
> I tried to compile my first program, but this was what I got:
> 
> 
> In file included from /usr/local/include/gdk/gdktypes.h:33,
>           from /usr/local/include/gdk/gdk.h:31,
>           from /usr/local/include/gtk/gtk.h:,
>           from file1.c:1
> /usr/local/include/glib.h:66: glibconfig.h: No such file or directory
> 
> 
> I change the path variable to include the above paths too, but to no avail.
> 
> 
> What am I doing wrong!!!

Please check the GTK FAQ at http://www.gtk.org/faq/ . You probably forgot
to compile with:

  gcc -o foo foo.c `gtk-config --cflags --libs`
                   ^                          ^
                   |                          |
                   +--------------------------+
and mind the back quotes...


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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