Re: Compiling Gtk+ and Cygwin

Maya <EscalanteCanada netscape net> writes:

> Using the Cygwin setup program, I have installed GTK+; looking for the
> 'gtk.h' file I found one in '/usr/include/gtk-2.0/gtk/gtk.h' and
> another at '/usr/X11R6/include/gtk-2.0/gtk/gtk.h', why is this?
> Most importantly, when I try to compile a program using:
>       gcc example.c -Wall -o example `gtk-config --libs --cflags`
> I get a message saying that gtk-config was not found and that there is
> no such a file as 'gtk/gtk.h'!
> Can someone tell me how to solve this problem?

Use `pkg-config --cflags --libs gtk+-2.0`.

Roger Leigh

                Printing on GNU/Linux?
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

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