Hrm, has LCC-win32 finally added C++ support?
Last time I looked it was purely C, so I wonder how the above even compiles...
EDIT: hm, seems like LCC has some limited support for iostreams like stuff, even though it doesn't do C++?
Anyway, your problem (hinted by NTVDM error, which is something you get for DOS apps) is that LCC produces object file output, not executables - you need to manually link. Using "-Fo" just changes the name, not the contents, and windows then interprets the .exe (which is really a COFF object file) as a DOS .com app.