3
我試圖在Windows 7 x64上從python27.dll
構建一個64位版本的libpython27.a
。dlltool:無法創建.lib文件:libpython27.a:無效的bfd目標
在這些instructions,我想:
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
dlltool: Can't create .lib file: libpython27.a: Invalid bfd target
什麼可以解釋dlltool: Can't create .lib file: libpython27.a: Invalid bfd target
?
dlltool版本:
E:\temp>dlltool -V
GNU dlltool (GNU Binutils) 2.23.2
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.