I have scanned other questions with similar headers, but non worked with me. I am using cygwin on windows 7 with its opencv package using clang compiler for c, When I tried a simple program to view an image it gave me this message Gtk-WARNING **: cannot open display
I have tried setting DISPLAY = 0.0 and didn't solve it just added 0.0 Gtk-WARNING **: cannot open display :0.0