|
From: Keith M. <kei...@us...> - 2009-03-14 22:53:01
|
On Saturday 14 March 2009 10:02:21 Nathan Schulte wrote: > I have found the issue. It seems as though any -l options need to > come _after_ the source files. > > g++ main.cpp `pkg-config --libs --cflags gtkmm-2.4` > > is ok, but Except that now, the CFLAGS may be misplaced. The definitively correct usage is as Tor has described. > gt++ `pkg-config --libs --cflags gtkmm-2.4` main.cpp > > is not. > > [...] > > Is this a bug, No. > or is this how gcc/g++ work? It is how compilers, and in particular linkers, in general, work on unixy platforms. (GCC is part of a unixy tool suite). -- Regards, Keith. |