Problem building PythonCE for x86

Ali Sabil <[email protected]>
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.