From: Paul K. <pki...@in...> - 2011-05-17 11:42:03
|
Hi I have been a very long time user of PyODE, using an ODE.PYD version compiled against Win32 Python 2.2 and 2.4. Unfortunately I now need to recompile (some 7 years later) for Python 2.4 64 bit and Python 2.7 32 and 64 bit. I am having trouble compiling for both version of python. For python 2.4 64 bit, it seems I need an old version of Visual Studio - long longer available. Does anyone know a workaround for this? I'm also struggling to compile PyODE for Python 2.7 using Vis Studio 2008. I compile ODE in Vis Studio ok, but then the pyode build gives link errors such as: (dReal) LIBCMT.lib(crtheap.obj) : error LNK2005: __malloc_crt already defined in MSVCRT. lib(MSVCR90.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.l ib(MSVCR90.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT. lib(MSVCR90.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSV CR90.dll) LIBCMT.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRT.lib(MS VCR90.dll) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib( cinitexe.obj) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib( cinitexe.obj) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib( cinitexe.obj) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib( cinitexe.obj) LIBCMT.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined in MS VCRT.lib(MSVCR90.dll) LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MS VCRT.lib(MSVCR90.dll) LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in MSVC RT.lib(MSVCR90.dll) LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MS VCRT.lib(MSVCR90.dll) LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MS VCR90.dll) LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVC R90.dll) Creating library build\temp.win32-2.7\Release\ode.lib and object build\temp.w in32-2.7\Release\ode.exp LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; us e /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; us e /NODEFAULTLIB:library LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main reference d in function ___tmainCRTStartup build\lib.win32-2.7\ode.pyd : fatal error LNK1120: 1 unresolved externals error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe"' failed with exit status 1120 Does anyone have any advice pls? Thanks in advance. Paul |