From 305804144c7b7827f96e5f6a727b22461e51abba Mon Sep 17 00:00:00 2001 From: Lukasz Forynski Date: Tue, 22 Aug 2017 15:25:52 +0100 Subject: [PATCH] Fix for #131 initModule symbol not visible in 1.64 If a global visibility is set to 'hidden', importing modules that define classes without either 'noimport' or 'init' causes errors like: `ImportError: dynamic module does not define init function` This seems to be due to some, probably unintended changes from #1. --- include/boost/python/object/instance.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/python/object/instance.hpp b/include/boost/python/object/instance.hpp index 27b91a1e5f..ffc6511909 100644 --- a/include/boost/python/object/instance.hpp +++ b/include/boost/python/object/instance.hpp @@ -18,7 +18,7 @@ namespace boost { namespace python { namespace objects { // Each extension instance will be one of these template -struct instance +struct BOOST_PYTHON_DECL instance { PyObject_VAR_HEAD PyObject* dict;