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

Re: I want to compile my project under Linux, but i have this error.



On Tue, Apr 23, 2002 at 08:39:06AM +0000, Mario Enrique L?pez Guzm?n wrote:
>  Ok... I write my code for gtk+-2.0 and the command that I use is:
> 
>    gcc -o plotter plotter.c 'pkg-config --cflags --libs gtk+2.0'
> 
>    and the compiler dont understand the 'pkg-config --cflags --libs gtk+-2.0' 
> because this say
> 
>    the directory doesn't exists.
> 
>    I try use:
> 
>    pkg-config --cflags --libs gtk2+-2.0 and the libraries are finded.
> 
>    somebody know the stream of this error.

You need to use backticks and not apostrophes.  They look very similar.

Backticks look like this: `
and apostrophes are like this: '

So
	gcc -o plotter plotter.c `pkg-config --cflags --libs gtk+2.0`
should work.

-- 
      Evan Martin
martine@cs.washington.edu
  http://neugierig.org



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