我的环境:Windows 7 64 pro、mingw32(使用 2012-04-26.exe 安装程序安装)、msys 1.0、Python 2.7.3 使用来自 python.org 的 Win64 安装程序安装
我正在尝试使用 mingw 和 msys 编译具有 python 绑定的 c++ 程序。当我从 msys shell 运行配置时,我得到了错误
Could not link test program to Python.
Maybe the main Python library has been installed in some non-standard library path.
If so, pass it to configure, via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================
我尝试使用以下各项运行配置:
./configure LDFLAGS="-L/c/Python27/libs"
./configure LDFLAGS="-L/c/Python27/Lib"
./configure LDFLAGS="-Lc:/Python27/libs"
./configure LDFLAGS="-Lc:/Python27/libs"
并且都给了我同样的最终错误。我已经在http://pastebin.com/fZVjTeub上发布了整个 config.log 文件。有什么帮助吗?