[645] 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 (Owen Taylor)
Mon Aug 4 01:02:47 1997

To: "M. Rosencrantz" <mjrose@u.washington.edu>
Cc: gtk-list@redhat.com
From: Owen Taylor <owt1@cornell.edu>
Date: 04 Aug 1997 00:59:03 -0400
In-Reply-To: "M. Rosencrantz"'s message of Sun, 3 Aug 1997 21:40:23 -0700 (PDT)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


The order you specify object files on the gcc command line is
significant. (The linker needs to know which functions it needs from a
library before it processes it.) If you reorder things to:

gcc -Wall -g helloworld.c -o hello_world -L/usr/X11R6/lib \
    -lglib -lgdk -lgtk -lX11 -lXext -lm 

I suspect it will work correctly.

Regards,
                                        Owen

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


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