[C++-sig] boost 1.41 and autolink (maybe the wrong list)

Terry.Rankine at csiro.au Terry.Rankine at csiro.au
Wed Jan 6 07:50:42 CET 2010


I have compiled boost, and now want to use it in my python app but I am having trouble with autolink.hpp in my c++ files.

C:\source\esys13>cl /Fo.sconf_temp\conftest_4.obj /c .sconf_temp\conftest_4.cpp /TP /nologo
/IC:\python26\include "/IC: \source\boost_1_41_0"
conftest_4.cpp
C:\source\boost_1_41_0\boost/config/auto_link.hpp(297) : fatal error C1189: #error :  "Mixing a dll boost
 library with a static runtime is a really bad idea..."

I haven't done any linking at this point - I am just trying to compile.

Here is my test file.

.sconf_temp\conftest_4.cpp:
    #include "boost/python.hpp"

Yep - just the include and thats it.

VS2008, and python 2.6

Any ideas what I am doing wrong?

Terry Rankine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20100106/f992b7bc/attachment.htm>


More information about the Cplusplus-sig mailing list