[643] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: compile problems

daemon@ATHENA.MIT.EDU (Raph Levien)
Mon Aug 4 00:44:42 1997

Date: Sun, 3 Aug 1997 21:43:57 -0700 (PDT)
From: Raph Levien <raph@acm.org>
To: "M. Rosencrantz" <mjrose@u.washington.edu>
cc: gtk-list@redhat.com
In-Reply-To: <Pine.A41.3.95b.970803212856.46698A-100000@dante15.u.washington.edu>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com



On Sun, 3 Aug 1997, M. Rosencrantz wrote:

> Hello, I am trying to build the hello world program described in the
> tutorial document.  I am having some trouble however.  I am sure I am
> doing something really stupid, as I am new to linux programming.  Im used
> to programming on windows with msvc where I dont have to keep track of all
> my libs and stuff.  Anyway, when I compile I get the following list of
> errors.  I use the command line "gcc -Wall -g -L/usr/X11R6/lib -lglib
> -lgdk -lgtk -lX11 -lXext -lm helloworld.c -o hello_world " 
> 
> The gdk, gtk, glib libraries all appear to be in my /usr/local/lib
> directory..
> 
> I have included all of the information it spits at me when I try to
> compile, Im sure you don't need to see all of it, but I figured I'd just
> let you decide what was important..
> 
> Any help would be greatly appreciated
> -Matt
> ------------------------
> /tmp/cca226611.o: In function `callback':
> /home/matt/projects/hello/helloworld.c:8: undefined reference
> to `g_print'

Looks like you need to add a -L/usr/local/lib option to your compile
command. 

Good luck!

Raph

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post