Re: [gtk-list] Re: problems compiling simple stuff
- From: Matt Kimball <mkimball xmission com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: problems compiling simple stuff
- Date: Sat, 28 Mar 1998 19:14:38 -0700
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]