Let\'s consider the following program and try to compile it under Cygwin:
#include int main(int argc, char** argv) { glutInit(&argc,
It sounds like you want to link against the native Win32 libraries instead of X11. Add -L/lib/w32api. Otherwise, you need to link against the X11 libraries (-L/usr/X11R6/lib -lX11 -lXi -lXmu) to get rid of the glX* linker errors..