On Thu, 3 Apr 2003 16:35:48 +0100 Ian Bell <ian redtommo com> wrote:
Running `pkg-config --cflags --libs gtk+-2.0` gives the following error: bash: -I/usr/include/gtk-2.0: No such file or directory Any ideas what is wrong?
Only call commands in backtics (`) when their output should be part of the invocation of another program (like gcc). Use either: echo `pkg-config --cflags --libs gtk+-2.0` or pkg-config --cflags --libs gtk+-2.0 if you want to use pkg-config separately. What happens here is that the shell replaces the pkg-config command with its output, and then tries to execute it. Since the output of pkg-config is a bunch of gcc flags, the shell does not know what to do with it, hence the error message. Roland -- R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in email http://www.xs4all.nl/~rsmith/ X No Word docs in email / \ Respect for open standards
Attachment:
pgpeZKbMNl55A.pgp
Description: PGP signature