0
votes

I recently installed cygwin on my windows 7 machine which I installed all the packages that came with cygwin. Now i have a simple "Hello World" program in C code that uses GTK objects. When I type make and compile the program in CYGWIN, it gives me a big error: "gtk/gtk.h: no such file or directory" ........... and it goes on an lists bunch of GTK errors

doesnt CYGWIN include GTK? If it does I am pretty sure I installed it. Is there another plugin for GTK and cygwin i dont know about? I really need this to work for my course throughout the semester. Aprreciate any help I can get.

2

2 Answers

0
votes

As far as I'm concerned Cygwin does not include Gtk. You can download Gtk for windows on http://www.gtk.org/download-windows.html, I recommend you download the all-in-one bundle.

0
votes

GTK+2 is included in Cygwin since 2004: you must install those packages, or the equivalent ones in Cygwin current.

Once done you can use pkg-config to feed the compiler with the proper flags. Being Cygwin really a POSIX distro, the standard documentation will apply.

Furthermore, be careful regardling the order of the arguments because (sadly) the official documentation is wrong.