DragonFly users List (threaded) for 2008-10
DragonFly BSD
DragonFly users List (threaded) for 2008-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: problem in gtk programming


From: Ulrich Spoerlein <uspoerlein@xxxxxxxxx>
Date: Mon, 27 Oct 2008 15:03:09 +0100

On Sun, 26.10.2008 at 21:21:22 +0100, dark0s Optik wrote:
> #pkg-config --libs --cflags gtk+-2.0
> -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include
> -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/cairo
> -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib/glib-2.0
> -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2
> -I/usr/pkg/include -I/usr/pkg/include/libpng12
> -I/usr/pkg/include/pixman-1  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
> -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0
> -lglib-2.0 -lintl
> 
> I must include all above librarries and path in gcc command, how can I
> run gcc with pkg-config as
> gcc 'pkg-config gtk+-2.0 --libs --cflags ....

Use backticks like this:

> gcc `pkg-config gtk+-2.0 --libs --cflags` ....

`` is totally different to '' or ""

Cheers,
Ulrich Spoerlein
-- 
It is better to remain silent and be thought a fool,
than to speak, and remove all doubt.



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