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

Simon Pickles sipickles at googlemail.com
Wed Jan 6 12:50:10 CET 2010


Hello Terry,

Try this:

.sconf_temp\conftest_4.cpp:

     #define BOOST_PYTHON_DYN_LINK
     #include "boost/python.hpp"

This will make boost look for shared library in the autolink feature

Si

On 06/01/2010 06:50, Terry.Rankine at csiro.au wrote:
>
> 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
>
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig

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


More information about the Cplusplus-sig mailing list