On Thu, 06 Apr 2006 00:45:18 EDT, [EMAIL PROTECTED] said:

> b) Making the final main program link look like:
> 
> cc -o mail -lfoo -lbar -lbaz

In a GTK context, the failure is often caused by a final link
that looks like:

cc -o $PROG main.c yadda.o yadda.o `pkg-config gtk --libs`

and can be fixed by:

cc -o $PROG main.c yadda.o yadda.o `pkg-config gtk --libs` `pkg-config glib 
--libs`

(I've also seen $GTK_LIBS variables in Makefiles - the same basic
solution applies there too - add the missing -lglib and so on...)

Attachment: pgpz6V5H1Fwtv.pgp
Description: PGP signature

_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to