Re: Re: Re: problems with linking and headers
- From: Noah Levitt <nlevitt columbia edu>
- To: tihomir belev <tihomir_gb abv bg>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Re: Re: problems with linking and headers
- Date: Mon, 19 May 2003 16:46:34 -0400
You don't need all those separate pkg-config things. Try
this command:
gcc -Wall -g `pkg-config --cflags gtk+-2.0` -o second second.c `pkg-config --libs gtk+-2.0`
What version of gtk+ are you using? gdk_display_get_default
is in 2.2 or later.
Noah
On Mon, May 19, 2003 at 23:36:38 +0300, tihomir belev wrote:
sorry about that, Noah ...
here's my Makefile:
default:
first_stuff=`pkg-config --cflags --libs gtk+-2.0`; \
second_stuff=`pkg-config --cflags --libs gdk-2.0`; \
third_stuff=`pkg-config --cflags --libs gdk-pixbuf-2.0`; \
fourth_stuff=`pkg-config --cflags --libs gdk-pixbuf-xlib-2.0`; \
fifth_stuff=`pkg-config --cflags --libs gdk-x11-2.0`; \
echo -e "$$fifth_stuff\n"; \
gcc $$first_stuff $$second_stuff $$third_stuff $$fourth_stuff $$fifth_stuff -o second second.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]