I am trying to compile and having following problem
$ gcc errlib.c -o errlib.o /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../lib/libcygwin.a(libcmain.o):
Use -c compile flag to only produce object file. Without -c it tries to link an executable and the linker (called automatically) fails.
-c