Re: Hi



Yup. Looks like you're using the wrong quotes in your compile command.

You've got "single quotation marks" (i.e. ' ) but you need apostrophies
(i.e. ` )
On my keyboard, the apostrophy is up by the non-keypad 1 key.

Apostrophies (I've heard them called ticks too; that's only one sylable,
much easier to "talk") mean: "run this command and put it's output **here**"

So the output of the call to gtk-config (that gives the compiler flags,
in your case, for bith #include directives and linking) will be supplied
to gcc.

This is failrly simple shell stuff and, incidentally, nothing to do with
GTK+.

The shell is your friend. Learn it well.

Craig.

linuxfun wrote:

> Hi
>
> I am the beginner og GTK+ but I love it very much.Here is my probleom:
>
> I cannot compile my GTK programm hello.c in Redhat 6.1,use gcc hello.c
> -o hello 'gtk-config--cflags--libs',why? I installed workstation redhat.
>
> thank all of you!
>






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