Re: [gtk-list] Re: problems compiling simple stuff



On Tue, Apr 28, 1998 at 07:27:12PM -0500, sar@on134th.com wrote:
> Well, I tried
> gcc -lgtk -lgdk -lglib -L/usr/local/include/gtk window.c
> and -L/usr/local/lib, -L/usr/local/lib/glib/include and a few others, but none
> seemed to work, 

You need to link with the X11 libraries too.  Try this:

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

If you don't have gtk-config in your path, then something like this:

gcc -L/usr/X11/lib -lgtk -lgdk -lglib -lXext -lX11 -lm window.c

-- 
Matt Kimball
mkimball@xmission.com



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