擅长:python、mysql、java
<p>另外,我在linux中编译时使用了以下两行代码</p>
<pre><code>$gcc -DNDEBUG -Wall -Wstrict-prototypes -fPIC -I/home/username/anaconda3/include/python3.6m -c stackDoc.cpp -o mydemo.o
$gcc -shared mydemo.o -o mydemo.so
</code></pre>
<p>我发现下面的链接很有用,
<a href="https://docs.python.org/2/extending/building.html" rel="nofollow noreferrer">https://docs.python.org/2/extending/building.html</a></p>