I have compiled and run your program using the current release of cygwin. this is the output: nusi@W2K-NUSI ~/Eigene Dateien/SelfMade/paramtest $ ./a.exe 0 -1 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple