Re: gtk+ and eclipse problems



 CFLAGS  = `pkg-config --cflags --libs gtk+-2.0 glib-2.0 gthread-2.0` -lm

Please don't do spread this `pkg-config --cflags --libs` meme.
Although it works on Linux with ELF, in general one should put the
compiler flags close to the beginning of the command line, before
source files, and library flags after the object files.

Use separate CFLAGS (output of pkg-config --cflags) and LIBS (output
of pkg-config --libs). Then your makefile will work also on more
traditional Unix systems.

--tml



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