[Distutils] 4Suite bcpp build looking for WinMain

Eric Hanson eric@aquameta.com
Fri Aug 16 11:20:03 2002


Hi,

I'm building 4suite on Windows98 using Borland's free compiler v5.5.
I converted the Python22.lib to python22_bcpp.lib with coff2omf, and now
here's what I'm getting.

C:\home\eric\4Suite>python setup.py build --compiler=bcpp
developer mode enabled (CVS directory found)
running build
running build_py
running build_ext
--SNIP WARNINGS--
Warning W8004 Ft\Server\Server\Drivers\Postgres\escapeandsplit.c 180:
'dict' is assigned a value that is never used in function 
initEscapeAndSplitcrunning build_scripts
build\temp.win32-2.2\scripts\4odb.c:
Warning W8004 build\temp.win32-2.2\scripts\4odb.c 16: 'i' is assigned a
value that is never used in function main
Error: Unresolved external 'WinMain' referenced from
C:\BCC55\LIB\C0W32.OBJ
error: command 'ilink32.exe' failed with exit status 2

Any ideas what might be wrong?  It's like it thinks it's a Windows
application, but I tried adding the -TC flag to bcppcompiler.py in the
self.compile_options, no dice.

Regards,
Eric
-- 
Eric Hanson
eric@aquameta.com
http://www.aquameta.com/~eric/