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.rank...@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@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig