1

私の環境:Windows 7 64 pro、mingw32(2012-04-26.exeインストーラーでインストール)、msys 1.0、python.orgのWin64インストーラーを使用してインストールされたPython 2.7.3

mingwとmsysを使用して、Pythonバインディングを持つC++プログラムをコンパイルしようとしています。msysシェルからconfigを実行すると、エラーが発生します

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を実行しようとしました:

./configure LDFLAGS="-L/c/Python27/libs"

./configure LDFLAGS="-L/c/Python27/Lib"

./configure LDFLAGS="-Lc:/Python27/libs"

./configure LDFLAGS="-Lc:/Python27/libs"

そして、すべてが私に同じ最終エラーを与えます。config.logファイル全体をhttp://pastebin.com/fZVjTeubに投稿しました。何か助けはありますか?

4

2 に答える 2

1

問題は、最終的には32ビットコンパイラを使用していて、それを64ビットPythonにリンクしようとしていたことでした。

于 2012-05-28T17:02:34.577 に答える
0

私の場合、私はに渡さなければなりませんでしLDFLAGS="-L/c/Python27/libs"./configure

于 2014-06-23T16:33:34.280 に答える