Re: how serious are these compiler warnings?



On Thu, 06 Apr 2006 00:45:18 EDT, Valdis Kletnieks vt edu 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: pgp9ihsMuiJMu.pgp
Description: PGP signature



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