如何使用VS2012为ARM编译“_ctypes”模块

时间:2013-04-26 09:02:35

标签: python python-2.7

我正在使用VS2012为ARM系统编译Python 2.6.8版本,我在“_ctypes”模块上有一些编译问题。   有谁能帮助我理解这个问题?   以下是编译问题:

1>------ Build started: Project: _ctypes, Configuration: Release ARM ------
1>  _ctypes.c
1>  callbacks.c
1>..\Modules\_ctypes\callbacks.c(441): error C2065: 'FFI_STDCALL' : undeclared identifier
1>  callproc.c
1>  cfield.c
1>  ffi.c
1>..\Modules\_ctypes\libffi_msvc\ffi.c(113): warning C4018: '>' : signed/unsigned mismatch
1>..\Modules\_ctypes\libffi_msvc\ffi.c(218): error C2065: 'FFI_STDCALL' : undeclared identifier
1>..\Modules\_ctypes\libffi_msvc\ffi.c(218): error C2051: case expression not constant
1>..\Modules\_ctypes\libffi_msvc\ffi.c(285): error C4235: nonstandard extension             used : '_asm'     keyword not supported on this architecture
1>..\Modules\_ctypes\libffi_msvc\ffi.c(285): error C2065: 'mov' : undeclared identifier
1>..\Modules\_ctypes\libffi_msvc\ffi.c(285): error C2146: syntax error : missing ';' before     identifier 'eax'
1>..\Modules\_ctypes\libffi_msvc\ffi.c(285): error C2065: 'eax' : undeclared identifier
..... etc

0 个答案:

没有答案