I just installed cygwin 1.7, and wrote a simple Hello world in test.c
but when I complie, nothing happens, even no error messages
gcc-4 -o test.exe test.c

And there’s nothing generated under my folder.
I have included C:\cygwin;C:\cygwin\bin in my PATH
Did I miss something?
EDIT:
for more information, I installed Qt4, tortoiseHg, and mingw before.
Now I had removed mingw. but still got Qt4 and tortoiseHg, is this a problem?
Try doing this from the Cygwin Terminal, not
cmd.exe:If that works, there’s some bogus remnant lying around.
You’ll find that the Cygwin experience is generally better running under Bash, in a MinTTY terminal anyway.
cmd.exedoesn’t understand Cygwinisms, and is a DOS throwback besides.Note that you don’t need to say
gcc-4to get GCC 4.x.gccis GCC 4.x on Cygwin, and has been for quite some time now.Also note that you don’t need to include
.exein the GCC-oflag, because Cygwin GCC knows to add that already.