擅长:python、mysql、java
<p>伊斯克伦已经给了你解决具体问题的方法。我来这里的目的是找出旗帜应该是什么。在</p>
<p>根据<a href="https://docs.python.org/2/extending/embedding.html#compiling-and-linking-under-unix-like-systems" rel="nofollow">Compiling and Linking under Unix-like systems</a>,Python将通过使用Python <code>pythonX.Y-config</code>命令(其中X和Y表示您所拥有的版本),并使用<code> cflags</code>和{<cd3>}请求编译和链接标志,从而为您的系统推荐哪些编译和链接选项。在</p>
<p>该链接给出了Python2.7的示例</p>
<pre><code>$ /opt/bin/python2.7-config cflags
-I/opt/include/python2.7 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
$ /opt/bin/python2.7-config ldflags
-L/opt/lib/python2.7/config -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic
</code></pre>