[PythonCE] Problem building PythonCE for x86

Ali Sabil hybrid at tuxfamily.org
Mon Mar 13 22:15:43 CET 2006


hi all,

I tried for the last days to build python CE for a real x86 windows CE
5.0 platform, i managed to change the makefiles, but actually it fails
linking, and complains about multiple definitions of _DllMain :


        lib /OUT:binaries\X86Rel\pythoncore\python23_library.lib
binaries\X86Rel\pythoncore\*.obj
Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nma00468.
python23_library.lib(dl_nt.obj) : error LNK2005: _DllMain already
defined in corelibc.lib(dllmain.obj)
python23_library.lib(dl_nt.obj) : warning LNK4006: _DllMain already
defined in corelibc.lib(dllmain.obj); second definit
ion ignored
   Creating library binaries\X86Rel\python23.lib and object
binaries\X86Rel\python23.exp
binaries\X86Rel\python23.dll : fatal error LNK1169: one or more multiply
defined symbols found
NMAKE : fatal error U1077: 'link.exe' : return code '0x491'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft eMbedded C++
4.0\COMMON\EVC\bin\NMAKE.EXE"' : return code '0x2'
Stop.


I edited the x86rel.mk as follow :

PLATFORM_OUTDIR=X86Rel
PLATFORM_INTDIR=X86Rel
PLATFORM_CPP=cl.exe
PLATFORM_CPP_PROJ=/D "i486" /D "_X86_" /D "x86" /D "NDEBUG" $(CFLAGS) /D
WIN32_WCE_X86 /Gd /Oxs /LD /ML
PLATFORM_LINK32_FLAGS=/subsystem:$(CESUBSYSTEM) /MACHINE:IX86
PLATFORM_LINK32_DLL_FLAGS=/base:"0x00100000" /entry:"_DllMainCRTStartup"
coredll.lib corelibc.lib /nodefaultlib:oldnames.lib
/nodefaultlib:libc.lib $(PLATFORM_LINK32_FLAGS)
PLATFORM_RSCFLAGS=/d "_X86_" /d "x86" /d "i486" /r /d "NDEBUG"

Thank you in advance.

--
Ali SABIL



More information about the PythonCE mailing list