Re: troubles compiling with gcc when using pkg-config
- From: "Richard Warren" <rew primagraphics co uk>
- To: <gtk-app-devel-list gnome org>
- Subject: Re: troubles compiling with gcc when using pkg-config
- Date: Thu, 16 Jan 2003 12:14:06 -0000
Firstly, are you sure that you're using back-ticks rather than apostrophes
(i.e. ` rather than ')? Apostrophes are normally on the same key as either
quotes (") or the @ symbol. Back-ticks are on another key (often top-left
of the keyboard).
Wrapping the pkg-config command in apostrophes (also called single-quotes
sometimes) will simply pass that as a single filename to gcc to compile.
Wrapping it in back-ticks will pass the _results_ of that command to gcc
(which is what you need).
Secondly, if anjuta is using gtk-config rather than pkg-config then it's
using GTK 1.2.x rather than GTK 2.
Hope that helps,
Richard.
----- Original Message -----
From: "David Smeringe" <david smeringe telia com>
To: <gtk-app-devel-list gnome org>
Sent: Thursday, January 16, 2003 1:48 AM
Subject: troubles compiling with gcc when using pkg-config
Hi there!
I'm trying to compile the very first example from the gtk+ 2.0 tutorial
on www.gtk.org (creating an empty 200x200px window). When I'm trying to
compile it using gcc gtktest.c -o gtktest 'pkg-config --cflags gtk+-2.0'
it returns:
[..]
gcc: pkg-config --cflags gtk+-2.0: No such file or directory
[..]
But when I'm trying to compile it using the anjuta IDE and including
desired libraries it works. But, as I understood it, it's just because
anjuta is using the old way of compiling (such as 'gtk-config --cflags'
instead of pkg-config).
When I'm running the pkg-config --cflags gtk+-2.0 on it's own it returns
a bunch of include paths that seems valid.
I tried to pass these values by hand instead of calling pkg-config but
then I got a huge list of parsing errors.. but gcc found the files at
least.. :-)
What am I doing wrong here? (
Worth of note is that I'm originally a java developer and very new to
C.)
Regards,
--
David Smeringe <david smeringe telia com>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]