[9331] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: Newbie Question/Problem

daemon@ATHENA.MIT.EDU (Jason A. Pfeil)
Thu Oct 15 09:48:13 1998

Date: Thu, 15 Oct 1998 09:47:22 -0400 (EDT)
From: "Jason A. Pfeil" <pfeil@nu.cs.fsu.edu>
To: Gtk-List <gtk-list@redhat.com>
In-Reply-To: <3625A7D9.ADF6862B@gte.net>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

You need to link with the gtk+ libraries.  Your compilation command line
should look like this:

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

On Thu, 15 Oct 1998, Joshua Yambert wrote:

> Hello,
>     I am having a problem compiling the Hello World program from the GTK
> 
> tutorial. Whenever I try to compile Hello World I get an error message
> like:
> "/tmp/cca006931.o(.text+0x15a):undefined reference to 'gtk_main' ."
> What do I need to do to fix this? Is this a problem with gcc?
> 
>                     Thank You
>                     Joshua Yambert
> 
> 
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 

-------------------------------------------------------------------------------
Jason A. Pfeil, Computer Science Graduate Student      101 Carothers Hall
http://www.cs.fsu.edu/~pfeil			       C3527 University Center
pfeil@cs.fsu.edu				       (850)644-8014


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


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