Updated to Ubuntu 11.04 and Can't Compile



Hi,

I am still at it.  It is a lonely night here.  My kids are playing with
legos, and I am baffled by this.  I have run pkg-config to no avail.  I
have examined my packages and include files.  It is all there.  The
error appears to be in ld.  Isn't ld a linker?  Here is the terminal out
on an attempt to compile, notice the ld returned 1 exit status at the
end->

craig craig:~$ cc `pkg-config --cflags --libs gtk+-2.0` hello.c -o hello
/tmp/ccfg4t6z.o: In function `main':
hello.c:(.text+0x17): undefined reference to `gtk_init'
hello.c:(.text+0x23): undefined reference to `gtk_window_new'
hello.c:(.text+0x2c): undefined reference to `gtk_window_get_type'
hello.c:(.text+0x3c): undefined reference to
`g_type_check_instance_cast'
hello.c:(.text+0x4c): undefined reference to `gtk_window_set_title'
hello.c:(.text+0x58): undefined reference to `gtk_widget_show'
hello.c:(.text+0x5d): undefined reference to `gtk_main'
collect2: ld returned 1 exit status

Any information would be appreciated!

-- 
Craig Bakalian <craigbakalian verizon net>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]