RE: GTK+ and MinGw..............



Suresh  Kumar writes:
    In my system pkg-config is reside in c:\gtk\bin. The PATH 
variable contains this directory in its list.

   Still when i compile the program using
     gcc -c hello.c `pkg-config gtk+-2.0 --cflags`
   iam getting the same error "pkg-config: No such file or 
directory".

You still didn't tell us what shell (command interpreter) you are
using. Are you typing this to a Unix-style shell or not? Are you sure
the same PATH variable is valid in this shell?

But when i run pkg-config on its own in command prompt,

You mean to cmd.exe (or command.com)? Are you sure you have the same
PATH value in Command Prompt and in the Unix-style shell where you
invoke gcc?

Problem comes 
when we make pkg-config as an argument to gcc.

No. pkg-config isn't supposed to be an argument to gcc. Do you see
those backquotes (the ` "quotes" or "accents") in the command line? In
Unix-style shells, they mean that the stuff between backquotes is run
as a command by itself, and the *output* of that command is then
pasted in instead.

If you don't have a Unix-style shell (which I tend to believe),
backquotes won't work.

--tml





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