No subject


Tue Oct 14 00:29:20 CEST 2008


module m("pyImageTools").def("foo", &foo);

I get:

P:\graphics\private\Students\hupp\ITImage\ImageTools\ITWrapper\ITWrapper.cpp(19) 
: error C2143: syntax error : missing ';' before '.'

Last, and probably least, I get a bunch of warnings when compiling.  I
assume that is normal, but I'll put them at the end of the message just
in case it's useful.  The test case I'm trying to build is also at the
end of the message.

Thanks,

-Adam


#include <boost/python/module.hpp>

using namespace boost::python;

BOOST_PYTHON_MODULE_INIT(pyImageTools)
{


	module m("pyImageTools");
	
}	


And the results...

p:\graphics\Tools\boost\boost/python/object/function.hpp(37) : warning
C4251: 'm_fn' : class 'boost::function2<struct _object *,struct _object
*,struct _object *,struct boost::empty_function_policy,struct
boost::empty_function_mixin,int>' needs to h
ave dll-interface to be used by clients of struct
'boost::python::objects::function'
p:\graphics\Tools\boost\boost/python/type_id.hpp(99) : warning C4800:
'int' : forcing value to bool 'true' or 'false' (performance warning)
p:\graphics\Tools\boost\boost/python/type_id.hpp(108) : warning C4800:
'int' : forcing value to bool 'true' or 'false' (performance warning)
p:\graphics\Tools\boost\boost/python/instance_holder.hpp(16) : warning
C4275: non dll-interface class 'boost::noncopyable' used as base for
dll-interface struct 'boost::python::instance_holder'
        p:\graphics\Tools\boost\boost/utility.hpp(50) : see declaration
of 'noncopyable'
p:\graphics\Tools\boost\boost/python/object/class.hpp(27) : warning
C4275: non dll-interface class 'boost::noncopyable' used as base for
dll-interface struct 'boost::python::objects::class_base'
        p:\graphics\Tools\boost\boost/utility.hpp(50) : see declaration
of 'noncopyable'
p:\graphics\Tools\boost\boost/python/object/class.hpp(43) : warning
C4251: 'm_object' : class 'boost::python::reference<struct _object>'
needs to have dll-interface to be used by clients of struct
'boost::python::objects::class_base'
p:\graphics\Tools\boost\boost/python/converter/callback_to_python_base.hpp(26) 
: warning C4275: non dll-interface struct
'boost::python::converter::detail::callback_to_python_holder' used as
base for dll-interface struct 'boost::python::converter::d
etail::callback_to_python_base'

p:\graphics\Tools\boost\boost/python/converter/callback_to_python_base.hpp(17) 
: see declaration of 'callback_to_python_holder'
p:\graphics\Tools\boost\boost/python/objects.hpp(32) : warning C4251:
'm_p' : class 'boost::python::reference<struct _object>' needs to have
dll-interface to be used by clients of class 'boost::python::object'
p:\graphics\Tools\boost\boost/python/objects.hpp(270) : warning C4251:
'm_dict' : class 'boost::python::reference<struct _object>' needs to
have dll-interface to be used by clients of struct
'boost::python::dictionary_proxy'
p:\graphics\Tools\boost\boost/python/objects.hpp(271) : warning C4251:
'm_key' : class 'boost::python::reference<struct _object>' needs to have
dll-interface to be used by clients of struct
'boost::python::dictionary_proxy'
p:\graphics\Tools\boost\boost/python/objects.hpp(336) : warning C4251:
'm_list' : class 'boost::python::list' needs to have dll-interface to be
used by clients of struct 'boost::python::list_proxy'
        p:\graphics\Tools\boost\boost/python/objects.hpp(146) : see
declaration of 'list'
p:\graphics\Tools\boost\boost/python/objects.hpp(351) : warning C4251:
'm_list' : class 'boost::python::reference<struct _object>' needs to
have dll-interface to be used by clients of struct
'boost::python::list_slice_proxy'
p:\graphics\Tools\boost\boost/python/detail/module_base.hpp(33) :
warning C4251: 'm_module' : class 'boost::python::reference<struct
_object>' needs to have dll-interface to be used by clients of class
'boost::python::detail::module_base'
Linking...
   Creating library Release/pyImageTools.lib and object
Release/pyImageTools.exp
ITWrapper.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::python::detail::module_base::~module_base(void)"
(__imp_??1module_base at detail@python at boost@@QAE at XZ)
ITWrapper.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::python::detail::module_base::module_base(char const *)"
(__imp_??0module_base at detail@python at boost@@QAE at PBD@Z)
../../DLLs/pyImageTools.dll : fatal error LNK1120: 2 unresolved
externals
Error executing link.exe.





More information about the Cplusplus-sig mailing list