Re: [gtk-list] compile problems
- From: Raph Levien <raph acm org>
- To: "M. Rosencrantz" <mjrose u washington edu>
- cc: gtk-list redhat com
- Subject: Re: [gtk-list] compile problems
- Date: Sun, 3 Aug 1997 21:43:57 -0700 (PDT)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]