Re: gtk+ and eclipse problems
- From: "Tor Lillqvist" <tml iki fi>
- To: "James Scott Jr" <skoona verizon net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk+ and eclipse problems
- Date: Tue, 25 Mar 2008 18:19:55 +0200
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]