I am building an open source port scanner (currently working on a prototype), and I am getting unexpected errors for standard library headers, both with Qt 4.5.2 that comes with Ubuntu 9.10 x64, and Qt 4.4.3 that comes with Debian 5 x64.


I can't figure out why this happens, and I can't reproduce the problem with ISO C++ only code.


The source code is here: http://www.cpp-software.net/temp/P-S.zip


I am getting the errors inside the main() definition.