Reputation: 63
I'm trying to make Gtk works under Cygwin/Code Blocks, but I encountered this error:
cannot find -lgtk-win32-3.0
The file gtk-win32-3.0.lib is located at
C:\gtk\lib
But when I try to add this file in the linker setting (Build option -> Linker settings -> Link Libraries), it does nothing.
Any idea ?
(It perfectly work with minGW)
Thanks
EDIT: I eliminated all remains of my old gtk's installation (the one downloaded on the official site made for minGW) and I also replaced the PATH variable by the good one.
Here is my path viariable: C:\cygwin64\bin
After that I had some file missing error when I compiled, so I added all correct paths into my search directory, but I don't think it was the good method, because now I have something like 10 path into my search directory ...
Anyway, now I have, again, the same problem than before:
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgtk-win32-3.0
How can I solve this ?
Upvotes: 2
Views: 4392
Reputation: 36
gtk on cygwin is not different from gtk on other Unix-like systems.
Assuming you are looking of GTK3, install the libgtk3-devel package so that you have the needed headers and libraries.
Upvotes: 1