Correction, your code fails the C::B sample code works; your C++ code has a problem and BCC 5.1 has a bug.
The C::B sample code Works for me using C::B 10.05 and Borland 5.5
I saw no difference from your build log; my Borland installation is in "C:\GreenApps\BCC55".
OS Windows 7 32 Bit; I have some of the Win 7 security turned off.
Tim S.
bcc32.exe -q -w -x -v -IC:\GreenApps\BCC55\Include -oobj\Debug\main.obj -c main.cpp
main.cpp:
ilink32.exe -q -ap -v -LC:\GreenApps\BCC55\Lib -LC:\GreenApps\BCC55\Lib\PSDK c0x32 obj\Debug\main.obj ,bin\Debug\testbcc55.exe,,cw32mt.lib import32.lib ,,
Output size is 119.00 KB
If you run "bcc32 -v" on the command line with the same setup as to compile the code what do you get?
I get this.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2266: No file names given
Tim S.