[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
  Web www.spinics.net

Re: Compiling Gtk+ and Cygwin

Maya <EscalanteCanada@xxxxxxxxxxxx> 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?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.


[GIMP Users]     [Yosemite News]    [Yosemite Photos]    [Gimp's Home]     [Steve's Art]

Add to Google Powered by Linux