[PythonCE] Python 2.3.4 for CE build issues

Anne Wangnick anne.wangnick at t-online.de
Sun Jun 20 12:50:33 EDT 2004


Hello David,

I got a bit further by adding the following linker options:
	coredll.lib /nodefaultlib:oldnames.lib /nodefaultlib:libc.lib
/entry:DllMain

I'm now getting:
	link.exe @C:\Temp\nma02260.
   Creating library binaries\X86EMRel\pythoncore\python23.lib and object
binaries\X86EMRel\pythoncore\python23.exp
binaries\X86EMRel\pythoncore\python23.dll : warning LNK4086: entrypoint
'_DllMain' is not __stdcall with 12 bytes of arguments; image may not run
pythonrun.obj : error LNK2019: unresolved external symbol _exit referenced
in function _Py_Exit at 4
python23_library.lib(acceler.obj) : error LNK2001: unresolved external
symbol _exit
python23_library.lib(thread.obj) : error LNK2001: unresolved external symbol
_exit
pythonrun.obj : error LNK2019: unresolved external symbol __except_list
referenced in function _PyOS_CheckStack at 0
binaries\X86EMRel\pythoncore\python23.dll : fatal error LNK1120: 2
unresolved externals

Why does the linker warn about DllMain not being "__stdcall with 12 bytes of
arguments" when dl_nt.c defines it properly as BOOL WINAPI DllMain (HANDLE
hInst, ULONG ul_reason_for_call, LPVOID lpReserved)?

Any clue where exit is defined? And what is going on with _except_list?

Lost in Microsoft space,
Sebastian Wangnick

-----Ursprüngliche Nachricht-----
Von: Anne Wangnick [mailto:anne.nospam01 at wangnick.de]
Gesendet: Sonntag, 20. Juni 2004 14:26
An: David L. Kashtan; pythonce at python.org
Betreff: Python 2.3.4 for CE build issues


Hello David,

I've retrieved your 2.3.4 source distribution, and am now trying to build it
for the emulator.
I'm running EVC++ 4.0 SP3 and the 2003 SDK. I'm getting:
	Building lib
	...
	Building pythoncore
	...
	link.exe @C:\Temp\...
	LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
	...

The link settings are /nologo /stack:0x10000,0x1000 /dll
/windowsce:emulation /MACHINE:IX86
/out:binaries\X86EMRel\pythoncore\python23.dll
/implib:binaries\X86EMRel\pythoncore\python23.lib
/pdb:binaries\X86EMRel\pythoncore\python23.pdb
binaries\X86EMRel\pythoncore\pythonrun.obj
binaries\X86EMRel\pythoncore\python_nt.res
binaries\X86EMRel\pythoncore\python23_library.lib

I've tried before with EVC++ 3.0 and the 2002 SDK. There I was getting
the same error, but complaining about 'OLDNAMES.lib'.

Can you help?

Thanks,
Sebastian Wangnick

-----Ursprüngliche Nachricht-----
Von: pythonce-bounces at python.org [mailto:pythonce-bounces at python.org]Im
Auftrag von David L. Kashtan
Gesendet: Montag, 14. Juni 2004 00:43
An: pythonce at python.org
Betreff: [PythonCE] Python 2.3 for CE issues


I am almost ready to release a new version of Python/CE.
It is based on 2.3.4 and should be much closer in functionality
to the Windows Python 2.3.4

It is built for Pocket PC 2003 -- but if people need a Pocket PC 2002
version I can probabl make that as well.

David




More information about the PythonCE mailing list