Gtk compiling woes
Worik Stanton <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.dunedin.general |
|---|---|
| Message-ID | <[email protected]> |
I'm stumped. This was working yesterday...
I cannot link a small Gtk programme I have been working on.
Calling...
/usr/bin/gcc -Wall -g -Wl,--export-dynamic -pthread -lgtk-3 -lgdk-3
-latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0
ProjectName.o Callbacks.o -o ProjectName
I get a torrent of "undefined reference" errors. Like:
ProjectName.o: In function `main':
/home/worik/Documents/Research/CurrencySpeculation/DEV/GUI/ProjectName.c:18:
undefined reference to `gtk_init'
Looking for "gtk_init"...
$ locate libgtk-3.a
/usr/lib/i386-linux-gnu/libgtk-3.a
/usr/lib/i386-linux-gnu is in known by the linker...
$ cat /etc/ld.so.conf.d/i686-lin
ux-gnu.conf
# Multiarch support
/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu
/lib/i686-linux-gnu
/usr/lib/i686-linux-gnu
$ nm `locate libgtk-3.a`|grep gtk_init
U gtk_init
00001080 T gtk_init
00001050 T gtk_init_check
00000e80 T gtk_init_with_args
00000010 b gtk_initialized
U gtk_init
...and it is defined.
Why can gcc not find them?
W
--
Overcoming poverty is not a task of charity, it is an act of justice
_______________________________________________
DunLUG mailing list
[email protected]
http://lists.ethernal.org/listinfo/dunlug
DunLUG Wiki - http://dunlug.kallisti.net.nz/