1>precompiled.obj : error LNK2001: unresolved external symbol "private: static bool volatile boost::python::docstring_options::show_py_signatures_" (?show_py_signatures_@docstring_options@python@boost@@0_NC)
1>precompiled.obj : error LNK2001: unresolved external symbol "private: static bool volatile boost::python::docstring_options::show_user_defined_" (?show_user_defined_@docstring_options@python@boost@@0_NC)
1>precompiled.obj : error LNK2001: unresolved external symbol "private: static bool volatile boost::python::docstring_options::show_cpp_signatures_" (?show_cpp_signatures_@docstring_options@python@boost@@0_NC)
Web searches haven't been much help to explain why this is, and maybe I just don't know enough about boost to understand it, but the solution to this error is to change your preprocesser defines.
Previously I was using
BOOST_PYTHON_DYNAMIC_LIBin my preprocessor defines, it works fine for everything else I've done, but something in my new project doesn't like it. The solution to this is to tell boost to static link instead by using
BOOST_PYTHON_STATIC_LIBinstead of
BOOST_PYTHON_DYNAMIC_LIB.
When I have some more time I'm going to look into this a little bit more, I'd personally just like an explanation as to why I need to do this.
No comments:
Post a Comment