擅长:python、mysql、java
<p>你链接库的顺序不对。<code>boost_python</code>必须在前面,而{<cd2>}必须在它之后,因为{<cd1>}依赖于{<cd2>}。在</p>
<p>注意:这是错误的:<code>-L/usr/include</code>:<code>-L</code>告诉链接器在哪里找到库,但是<code>/usr/include</code>包含头,而不是库。您应该根本不需要它,但是如果您需要,它是<code>-L/usr/lib</code>或类似的。在</p>