On Tue, Mar 26, 2019 at 3:27 PM Sarah Rust <sarah.r...@roosterteeth.com> wrote: > > Hello! > > I have been trying to build and link the latest Boost.Python to work with > Python 2.7 and my Visual Studio 2015 project (MSVC 14.0) with x64 > configuration. I've added the Boost library and Boost include directory to my > project's properties, but I am getting the following error when I create a > BOOST_PYTHON_MODULE: > > error LNK2001: unresolved external symbol "__declspec(dllimport) struct > _object * __cdecl boost::python::detail::init_module(char const *,void > (__cdecl*)(void))" > (__imp_?init_module@detail@python@boost@@YAPEAU_object@@PEBDP6AXXZ@Z)
Have you built Python yourself? With which compiler? Are you linking against its import lib (for DLL use at run time)? Could you maybe use the static version of Boost? Actually while writing this, a though came up: Are you even linking against the Boost Python library? > Please let me know how others are doing this. Probably not at all ;). _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig