[PythonCE] Problem building PythonCE for x86

Luke Dunstan coder_infidel at hotmail.com
Tue Mar 14 15:58:25 CET 2006


The problem appears to be that you added .lib files to 
PLATFORM_LINK32_DLL_FLAGS, and on the linker command line these appeared 
before the Python object files (they should be after). The fact that these 
lib files are not needed for the ARM build suggests that something else is 
wrong (I don't know what exactly). What happens without all those extra 
linker options you added?

Luke

----- Original Message ----- 
From: "Ali Sabil" <hybrid at tuxfamily.org>
To: <pythonce at python.org>
Sent: Tuesday, March 14, 2006 5:15 AM
Subject: [PythonCE] Problem building PythonCE for x86


> 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
>
> _______________________________________________
> PythonCE mailing list
> PythonCE at python.org
> http://mail.python.org/mailman/listinfo/pythonce
> 


More information about the PythonCE mailing list