when I compile with the current cygwin g++ (v.3.4.4) I get 'strange' errors in the link step when I use the -O2 option for compiling. This happens since I use the stl.
Yes, I tried already leaving -O2 away, that fixes the problem. But I want to optimize the binary, so that is no real solution. Maybe waiting for a new gcc version is the only option...