1

我正在尝试在 Windows 7 x64 上构建 64 位版本的libpython27.afrom 。python27.dll

按照这些说明,我尝试了:

E:\temp>gendef python27.dll
 * [python27.dll] Found PE+ image

E:\temp>dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libpython27.a --i
nput-def python27.def
Assembler messages:
Fatal error: no compiled in support for x86_64
dlltool: as exited with status 1
dlltool: failed to open temporary head file: dgtnh.o: No such file or directory

有什么可以解释的Fatal error: no compiled in support for x86_64

我懂了:

E:\temp>dlltool -h
Usage dlltool <option(s)> <object-file(s)>
   -m --machine <machine>    Create as DLL for <machine>.  [default: i386:x86-64]
        possible <machine>: arm[_interwork], i386, mcore[-elf]{-le|-be}, ppc, thumb
   -e --output-exp <outname> Generate an export file.

问题是否来自事实possible <machine>不包含x86_64,如果是,在哪里找到dlltool.exe支持的x86_64

4

0 回答 0