http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214
--- Comment #8 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-18 21:19:51 UTC --- my command line for compile: c++ -I"D:\Program Files\PostgreSQL\9.1\include" -L"D:\Program Files\PostgreSQL\9.1\lib" -lpq -o %application_file% %application_file%.cpp -Wl,--subsystem,windows -lgdi32 -lcomctl32 -D_WIN32_IE=0x0300 -save-temps -save-temps - this option I use to have all files included(assembler source, etc...)