[Python-Dev] Building Python for AMD64 (Windows)

Thomas Heller theller at python.net
Wed Mar 22 18:02:28 CET 2006


I'm trying out to build Python for 64-bit Windows, running the tools on WinXP SP2 (32-bit).

I have installed:
- MSVC .NET 2003
- Platform SDK Feb 2003
- vsextcomp 0.6

Then I fire up MSVC, select the ReleaseAMD64 configuration, and try to build the
pythoncore project.
After lots of compiler warnings, the build fails with this message:

cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WINDOWS -DWIN32 -D_WINDLL -MD -MD /USECL:MS_OPTERON getbuildinfo2.c -DSUBWCREV  -Fogetbuildinfo.o -I..\Include -I..\PC
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
getbuildinfo2.c
Linking...
LINK : warning LNK4044: unrecognized option '/USELINK:MS_SDK'; ignored
getbuildinfo.o : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'AMD64'

Build log was saved at "file://c:\svn\trunk\PCbuild\amd64-temp-release\pythoncore\BuildLog.htm"
pythoncore - 1 error(s), 229 warning(s)

Is there something wrong on my side?

Thanks,

Thomas



More information about the Python-Dev mailing list