Hi guys and girls,<br><br>I&#39;m new to this wonderful CMake thingy and I&#39;m having some problems linking to boost.python.<br><br>My setup on windows xp:<br><br>mingw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5.1.3&nbsp; (with gcc 3.4.5)<br>boost&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.34.1
<br>python&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.5<br><br>I compiled boost as per instructions with mingw without any problems.<br><br>With some simple code using boost/python I can compile without errors, but when ld tries linking I get <span class="ppt" id="_user_cmake@cmake.org">
&quot;undefined reference to &#39;_imp____&nbsp; ....&quot; errors.<br><br>In my CMakeLists file I have<br><br>TARGET_LINK_LIBRARIES(${EXE_NAME}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${BOOST_PYTHON_LIB}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${PYTHON_LIBRARIES}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; )<br>
</span><br>With the BOOST_PYTHON_LIB pointing directly to C:/Boost/lib/libboost_python-mgw34-1_34_1.a<br><br>Removing code using boost.python stuff and just using the normal python lib compiles and links fine.<br><br>What am I doing wrong?&nbsp; I&#39;ve tried every version of the boost_python lib by the way, -mt, -s, -d, and combinations thereof.&nbsp; Which one should I use, is there a way to chose the correct library automatically, the 
FindBoost.cmake include doesn&#39;t seem to do it.<br><br>And what exactly is the -s library for? I though lib*.a files were already static?<br><br>If anyone out there has gotten boost.python to work with mingw please let me in on your secrets.&nbsp; Any suggestions are welcome...
<br><br>Have a nice day,<br>cputter<span class="ppt" id="_user_cmake@cmake.org"></span><br><br><br>