Problem Compiling Boost.Python Example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem Compiling Boost.Python Example

Payam Shiva
Hi,

I have trouble compiling the simplest examples with Boost.Python. I
hope you could help me find out what I'm doing wrong.
I am using Microsoft Visual C++ 2010 on 64-bit Windows 7. I use 64-bit
version of Python 2.7.2 from Enthought Python Distribution 7.2-2. I
installed Boost as described in "Simplified Build From Source" section
of Boost getting started guide, i.e. going to Boost.Build directory
and typing:
bootstarp
.\b2

Boost compiled without errors (except for a warning about MPI). Then I
created user-config.jam in my home directory containing the following
lines:
using msvc : 10.0 ;
using python : 2.7 : C:\\Python 27 ;

Then I tried compiling the tutorial example, but I got the following
messages (and no DLL):
C:\Boost\boost_1_49_0\libs\python\example\tutorial> bjam
...patience...
...patience...
...found 1592 targets...
...updating 10 targets...
msvc.link.dll ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.dll
   Creating library
..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.l
ib and object ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.exp
function.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyErr_Format referenced in function "void __cdecl boost::
python::numeric::`anonymous namespace'::throw_load_failure(void)"
(?throw_load_failure@?A0xd5ad2121@numeric@python@boost
@@YAXXZ)
from_python.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
registry.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
class.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
numeric.obj : error LNK2001: unresolved external symbol __imp__PyExc_ImportError
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyErr_Clear referenced in function "bool __cdecl boost::p
ython::numeric::`anonymous namespace'::load(bool)"
(?load@?A0xd5ad2121@numeric@python@boost@@YA_N_N@Z)
class.obj : error LNK2001: unresolved external symbol __imp__PyErr_Clear
function.obj : error LNK2001: unresolved external symbol __imp__PyErr_Clear
object_protocol.obj : error LNK2001: unresolved external symbol
__imp__PyErr_Clear
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyCallable_Check referenced in function "bool __cdecl boo
st::python::numeric::`anonymous namespace'::load(bool)"
(?load@?A0xd5ad2121@numeric@python@boost@@YA_N_N@Z)
class.obj : error LNK2001: unresolved external symbol __imp__PyCallable_Check
object_protocol.obj : error LNK2001: unresolved external symbol
__imp__PyObject_GetAttrString
wrapper.obj : error LNK2001: unresolved external symbol
__imp__PyObject_GetAttrString
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyObject_GetAttrString referenced in function "bool __cde
cl boost::python::numeric::`anonymous namespace'::load(bool)"
(?load@?A0xd5ad2121@numeric@python@boost@@YA_N_N@Z)
enum.obj : error LNK2001: unresolved external symbol
__imp__PyObject_GetAttrString
class.obj : error LNK2001: unresolved external symbol
__imp__PyObject_GetAttrString
function.obj : error LNK2001: unresolved external symbol
__imp__PyObject_GetAttrString
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyImport_Import referenced in function "bool __cdecl boos
t::python::numeric::`anonymous namespace'::load(bool)"
(?load@?A0xd5ad2121@numeric@python@boost@@YA_N_N@Z)
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyObject_IsInstance referenced in function "public: stati
c bool __cdecl boost::python::numeric::aux::array_object_manager_traits::check(struct
_object *)" (?check@array_object_m
anager_traits@aux@numeric@python@boost@@SA_NPAU_object@@@Z)
from_python.obj : error LNK2001: unresolved external symbol
__imp__PyObject_IsInstance
class.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsInstance
enum.obj : error LNK2001: unresolved external symbol __imp__PyEval_CallFunction
class.obj : error LNK2001: unresolved external symbol __imp__PyEval_CallFunction
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyEval_CallFunction
stl_iterator.obj : error LNK2001: unresolved external symbol
__imp__PyEval_CallFunction
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyEval_CallFunction referenced in function "class boost::
python::api::object __cdecl boost::python::call<class
boost::python::api::object,class boost::python::api::object>(struc
t _object *,class boost::python::api::object const &,struct
boost::type<class boost::python::api::object> *)" (??$call@V
object@api@python@boost@@V1234@@python@boost@@YA?AVobject@api@01@PAU_object@@ABV2301@PAU?$type@Vobject@api@python@boost@
@@1@@Z)
list.obj : error LNK2001: unresolved external symbol __imp__PyEval_CallFunction
dict.obj : error LNK2001: unresolved external symbol __imp__PyEval_CallFunction
str.obj : error LNK2001: unresolved external symbol __imp__PyEval_CallFunction
function.obj : error LNK2001: unresolved external symbol __imp__PyInt_FromLong
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp__PyInt_FromLong
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyInt_FromLong referenced in function "public: __thiscall
 boost::python::converter::arg_to_python<long>::arg_to_python<long>(long
const &)" (??0?$arg_to_python@J@converter@pytho
n@boost@@QAE@ABJ@Z)
list.obj : error LNK2001: unresolved external symbol __imp__PyInt_FromLong
enum.obj : error LNK2001: unresolved external symbol __imp__PyInt_FromLong
class.obj : error LNK2001: unresolved external symbol __imp__PyInt_FromLong
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyBool_FromLong referenced in function "public: __thiscal
l boost::python::converter::arg_to_python<bool>::arg_to_python<bool>(bool
const &)" (??0?$arg_to_python@_N@converter@pyt
hon@boost@@QAE@AB_N@Z)
class.obj : error LNK2001: unresolved external symbol __imp__PyBool_FromLong
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyString_FromStringAndSize referenced in function "public
: __thiscall boost::python::converter::arg_to_python<class
std::basic_string<char,struct std::char_traits<char>,class st
d::allocator<char> > >::arg_to_python<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<ch
ar> > >(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??0?$arg_to_p
ython@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@converter@python@boost@@QAE@ABV?$basic_string@DU?$c
har_traits@D@std@@V?$allocator@D@2@@std@@@Z)
str.obj : error LNK2001: unresolved external symbol
__imp__PyString_FromStringAndSize
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyString_FromStringAndSize
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp__PyString_FromStringAndSize
wrapper.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
import.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
exec.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp___Py_NoneStruct
iterator.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
stl_iterator.obj : error LNK2001: unresolved external symbol
__imp___Py_NoneStruct
object_protocol.obj : error LNK2001: unresolved external symbol
__imp___Py_NoneStruct
object_operators.obj : error LNK2001: unresolved external symbol
__imp___Py_NoneStruct
life_support.obj : error LNK2001: unresolved external symbol
__imp___Py_NoneStruct
pickle_support.obj : error LNK2001: unresolved external symbol
__imp___Py_NoneStruct
module.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp___Py_NoneStruct referenced in function "public:
 static void __cdecl
boost::numeric::convdetail::generic_range_checker<struct
boost::numeric::conversion_traits<unsigned
 short,long>,struct boost::numeric::convdetail::LT_Zero<struct
boost::numeric::conversion_traits<unsigned short,long> >,
struct boost::numeric::convdetail::GT_HiT<struct
boost::numeric::conversion_traits<unsigned short,long> >,struct
boost::
numeric::def_overflow_handler>::validate_range(long)"
(?validate_range@?$generic_range_checker@U?$conversion_traits@GJ@n
umeric@boost@@U?$LT_Zero@U?$conversion_traits@GJ@numeric@boost@@@convdetail@23@U?$GT_HiT@U?$conversion_traits@GJ@numeric
@boost@@@523@Udef_overflow_handler@23@@convdetail@numeric@boost@@SAXJ@Z)
registry.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
enum.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
class.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
function.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
tuple.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
str.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
slice.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
from_python.obj : error LNK2001: unresolved external symbol
__imp___Py_NoneStruct
numeric.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
list.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
long.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
dict.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
str.obj : error LNK2001: unresolved external symbol __imp__PyObject_CallFunction
class.obj : error LNK2001: unresolved external symbol
__imp__PyObject_CallFunction
list.obj : error LNK2019: unresolved external symbol
__imp__PyObject_CallFunction referenced in function "private: stati
c struct boost::python::detail::new_non_null_reference_t * __cdecl
boost::python::detail::list_base::call(class boost::p
ython::api::object const &)"
(?call@list_base@detail@python@boost@@CAPAUnew_non_null_reference_t@234@ABVobject@api@34@@Z
)
long.obj : error LNK2001: unresolved external symbol
__imp__PyObject_CallFunction
dict.obj : error LNK2001: unresolved external symbol
__imp__PyObject_CallFunction
tuple.obj : error LNK2001: unresolved external symbol
__imp__PyObject_CallFunction
list.obj : error LNK2001: unresolved external symbol __imp__PyList_Type
list.obj : error LNK2019: unresolved external symbol __imp__PyList_New
referenced in function "protected: __thiscall boo
st::python::detail::list_base::list_base(void)"
(??0list_base@detail@python@boost@@IAE@XZ)
list.obj : error LNK2019: unresolved external symbol
__imp__PyList_Append referenced in function "public: void __thiscal
l boost::python::detail::list_base::append(class
boost::python::api::object const &)"
(?append@list_base@detail@python@b
oost@@QAEXABVobject@api@34@@Z)
list.obj : error LNK2019: unresolved external symbol
__imp__PyInt_AsLong referenced in function "public: long __thiscall
 boost::python::detail::list_base::index(class
boost::python::api::object const &)const "
(?index@list_base@detail@pytho
n@boost@@QBEJABVobject@api@34@@Z)
str.obj : error LNK2001: unresolved external symbol __imp__PyInt_AsLong
class.obj : error LNK2001: unresolved external symbol __imp__PyInt_AsLong
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyInt_AsLong
list.obj : error LNK2019: unresolved external symbol
__imp__PyList_Insert referenced in function "public: void __thiscal
l boost::python::detail::list_base::insert(int,class
boost::python::api::object const &)" (?insert@list_base@detail@pyth
on@boost@@QAEXHABVobject@api@34@@Z)
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyErr_Occurred
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyErr_Occurred
stl_iterator.obj : error LNK2019: unresolved external symbol
__imp__PyErr_Occurred referenced in function "public: __thi
scall boost::python::handle<struct _object>::operator struct _object *
(__thiscall boost::python::handle<struct _object>
::*)(void)const (void)const "
(??B?$handle@U_object@@@python@boost@@QBEP8012@BEPAU_object@@XZXZ)
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp__PyErr_Occurred
list.obj : error LNK2001: unresolved external symbol __imp__PyErr_Occurred
str.obj : error LNK2001: unresolved external symbol __imp__PyErr_Occurred
enum.obj : error LNK2001: unresolved external symbol __imp__PyErr_Occurred
function.obj : error LNK2001: unresolved external symbol __imp__PyErr_Occurred
list.obj : error LNK2019: unresolved external symbol
__imp__PyList_Reverse referenced in function "public: void __thisca
ll boost::python::detail::list_base::reverse(void)"
(?reverse@list_base@detail@python@boost@@QAEXXZ)
list.obj : error LNK2019: unresolved external symbol
__imp__PyList_Sort referenced in function "public: void __thiscall
boost::python::detail::list_base::sort(void)"
(?sort@list_base@detail@python@boost@@QAEXXZ)
long.obj : error LNK2001: unresolved external symbol __imp__PyLong_Type
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyLong_Type referenced in function "struct _ob
ject * __cdecl boost::python::converter::do_return_to_python(char
const *)" (?do_return_to_python@converter@python@boost
@@YAPAU_object@@PBD@Z)
dict.obj : error LNK2001: unresolved external symbol __imp__PyDict_Type
enum.obj : error LNK2001: unresolved external symbol __imp__PyDict_Type
dict.obj : error LNK2019: unresolved external symbol __imp__PyDict_New
referenced in function "protected: __thiscall boo
st::python::detail::dict_base::dict_base(void)"
(??0dict_base@detail@python@boost@@IAE@XZ)
class.obj : error LNK2001: unresolved external symbol __imp__PyDict_New
dict.obj : error LNK2019: unresolved external symbol
__imp__PyDict_Clear referenced in function "public: void __thiscall
 boost::python::detail::dict_base::clear(void)"
(?clear@dict_base@detail@python@boost@@QAEXXZ)
dict.obj : error LNK2019: unresolved external symbol
__imp__PyDict_Copy referenced in function "public: class boost::pyt
hon::dict __thiscall boost::python::detail::dict_base::copy(void)"
(?copy@dict_base@detail@python@boost@@QAE?AVdict@34@X
Z)
dict.obj : error LNK2019: unresolved external symbol
__imp__PyDict_GetItem referenced in function "public: class boost::
python::api::object __thiscall
boost::python::detail::dict_base::get(class boost::python::api::object
const &)const " (?
get@dict_base@detail@python@boost@@QBE?AVobject@api@34@ABV5634@@Z)
function.obj : error LNK2001: unresolved external symbol __imp__PyDict_GetItem
dict.obj : error LNK2019: unresolved external symbol
__imp__PyDict_Items referenced in function "public: class boost::py
thon::list __thiscall
boost::python::detail::dict_base::items(void)const "
(?items@dict_base@detail@python@boost@@QBE?AV
list@34@XZ)
dict.obj : error LNK2019: unresolved external symbol
__imp__PyDict_Keys referenced in function "public: class boost::pyt
hon::list __thiscall boost::python::detail::dict_base::keys(void)const
" (?keys@dict_base@detail@python@boost@@QBE?AVlis
t@34@XZ)
dict.obj : error LNK2019: unresolved external symbol
__imp__PyDict_Update referenced in function "public: void __thiscal
l boost::python::detail::dict_base::update(class
boost::python::api::object const &)"
(?update@dict_base@detail@python@b
oost@@QAEXABVobject@api@34@@Z)
dict.obj : error LNK2019: unresolved external symbol
__imp__PyDict_Values referenced in function "public: class boost::p
ython::list __thiscall
boost::python::detail::dict_base::values(void)const "
(?values@dict_base@detail@python@boost@@QBE
?AVlist@34@XZ)
tuple.obj : error LNK2001: unresolved external symbol __imp__PyTuple_Type
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyTuple_Type
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp__PyTuple_New
tuple.obj : error LNK2019: unresolved external symbol
__imp__PyTuple_New referenced in function "protected: __thiscall b
oost::python::detail::tuple_base::tuple_base(void)"
(??0tuple_base@detail@python@boost@@IAE@XZ)
enum.obj : error LNK2001: unresolved external symbol __imp__PyTuple_New
class.obj : error LNK2001: unresolved external symbol __imp__PyTuple_New
function.obj : error LNK2001: unresolved external symbol __imp__PyTuple_New
str.obj : error LNK2001: unresolved external symbol __imp__PyString_Type
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyString_Type referenced in function __unwindf
unclet$?construct@?$slot_rvalue_from_python@_NUbool_rvalue_from_python@?A0xa22ba1ea@converter@python@boost@@@?A0xa22ba1e
a@converter@python@boost@@CAXPAU_object@@PAUrvalue_from_python_stage1_data@345@@Z$0
str.obj : error LNK2019: unresolved external symbol
__imp__PyString_FromString referenced in function "protected: __this
call boost::python::detail::str_base::str_base(void)"
(??0str_base@detail@python@boost@@IAE@XZ)
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyString_FromString
str.obj : error LNK2019: unresolved external symbol
__imp__PyObject_CallMethod referenced in function "public: class boo
st::python::str __thiscall
boost::python::detail::str_base::capitalize(void)const "
(?capitalize@str_base@detail@python@
boost@@QBE?AVstr@34@XZ)
slice.obj : error LNK2019: unresolved external symbol
__imp__PySlice_New referenced in function "protected: __thiscall b
oost::python::detail::slice_base::slice_base(struct _object *,struct
_object *,struct _object *)" (??0slice_base@detail@
python@boost@@IAE@PAU_object@@00@Z)
object_protocol.obj : error LNK2001: unresolved external symbol
__imp__PySlice_New
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyErr_SetObject
iterator.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetObject
from_python.obj : error LNK2019: unresolved external symbol
__imp__PyErr_SetObject referenced in function "void * __cdec
l boost::python::converter::rvalue_from_python_stage2(struct _object
*,struct boost::python::converter::rvalue_from_pyth
on_stage1_data &,struct boost::python::converter::registration const
&)" (?rvalue_from_python_stage2@converter@python@bo
ost@@YAPAXPAU_object@@AAUrvalue_from_python_stage1_data@123@ABUregistration@123@@Z)
registry.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetObject
class.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetObject
function.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetObject
from_python.obj : error LNK2001: unresolved external symbol
__imp__PyExc_TypeError
registry.obj : error LNK2019: unresolved external symbol
__imp__PyExc_TypeError referenced in function "void __cdecl boo
st::python::converter::registry::insert(struct _object *
(__cdecl*)(void const *),struct boost::python::type_info,struct
 _typeobject const * (__cdecl*)(void))"
(?insert@registry@converter@python@boost@@YAXP6APAU_object@@PBX@ZUtype_info@34@P
6APBU_typeobject@@XZ@Z)
class.obj : error LNK2001: unresolved external symbol __imp__PyExc_TypeError
function.obj : error LNK2001: unresolved external symbol __imp__PyExc_TypeError
from_python.obj : error LNK2019: unresolved external symbol
__imp__PyString_FromFormat referenced in function "void * __
cdecl boost::python::converter::rvalue_from_python_stage2(struct
_object *,struct boost::python::converter::rvalue_from_
python_stage1_data &,struct boost::python::converter::registration
const &)" (?rvalue_from_python_stage2@converter@pytho
n@boost@@YAPAXPAU_object@@AAUrvalue_from_python_stage1_data@123@ABUregistration@123@@Z)
registry.obj : error LNK2001: unresolved external symbol
__imp__PyString_FromFormat
enum.obj : error LNK2001: unresolved external symbol __imp__PyString_FromFormat
from_python.obj : error LNK2001: unresolved external symbol
__imp__PyExc_ReferenceError
registry.obj : error LNK2019: unresolved external symbol
__imp__PyErr_WarnEx referenced in function "void __cdecl boost:
:python::converter::registry::insert(struct _object * (__cdecl*)(void
const *),struct boost::python::type_info,struct _t
ypeobject const * (__cdecl*)(void))"
(?insert@registry@converter@python@boost@@YAXP6APAU_object@@PBX@ZUtype_info@34@P6AP
BU_typeobject@@XZ@Z)
enum.obj : error LNK2019: unresolved external symbol
__imp__PyString_AsString referenced in function _enum_repr
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyString_AsString
enum.obj : error LNK2001: unresolved external symbol __imp__PyInt_Type
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyInt_Type referenced in function "private: st
atic void __cdecl boost::python::converter::`anonymous
namespace'::slot_rvalue_from_python<float,struct boost::python::c
onverter::`anonymous
namespace'::float_rvalue_from_python>::construct(struct _object
*,struct boost::python::converter::
rvalue_from_python_stage1_data *)"
(?construct@?$slot_rvalue_from_python@MUfloat_rvalue_from_python@?A0xa22ba1ea@convert
er@python@boost@@@?A0xa22ba1ea@converter@python@boost@@CAXPAU_object@@PAUrvalue_from_python_stage1_data@345@@Z)
enum.obj : error LNK2019: unresolved external symbol
__imp__PyType_Ready referenced in function "class boost::python::ap
i::object __cdecl boost::python::objects::`anonymous
namespace'::new_enum_type(char const *,char const *)" (?new_enum_ty
pe@?A0xb5ee345a@objects@python@boost@@YA?AVobject@api@34@PBD0@Z)
class.obj : error LNK2001: unresolved external symbol __imp__PyType_Ready
function.obj : error LNK2001: unresolved external symbol __imp__PyType_Ready
life_support.obj : error LNK2001: unresolved external symbol __imp__PyType_Ready
enum.obj : error LNK2001: unresolved external symbol __imp__PyType_Type
class.obj : error LNK2001: unresolved external symbol __imp__PyType_Type
function.obj : error LNK2001: unresolved external symbol __imp__PyType_Type
life_support.obj : error LNK2001: unresolved external symbol __imp__PyType_Type
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp__PyObject_Size
enum.obj : error LNK2019: unresolved external symbol
__imp__PyObject_Size referenced in function "int __cdecl boost::pyt
hon::len(class boost::python::api::object const &)"
(?len@python@boost@@YAHABVobject@api@12@@Z)
function.obj : error LNK2001: unresolved external symbol __imp__PyObject_Size
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyObject_Size
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyObject_Size
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyObject_IsTrue
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp__PyObject_IsTrue
enum.obj : error LNK2019: unresolved external symbol
__imp__PyObject_IsTrue referenced in function "public: __thiscall b
oost::python::api::object_operators<class
boost::python::api::object>::operator struct _object * (__thiscall
boost::pyth
on::api::object::*)(void)const (void)const "
(??B?$object_operators@Vobject@api@python@boost@@@api@python@boost@@QBEP8ob
ject@123@BEPAU_object@@XZXZ)
class.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsTrue
function.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsTrue
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyObject_IsTrue
enum.obj : error LNK2019: unresolved external symbol
__imp__PyLong_FromUnsignedLong referenced in function "public: __th
iscall boost::python::converter::arg_to_python<unsigned
int>::arg_to_python<unsigned int>(unsigned int const &)" (??0?$a
rg_to_python@I@converter@python@boost@@QAE@ABI@Z)
class.obj : error LNK2001: unresolved external symbol
__imp__PyLong_FromUnsignedLong
function.obj : error LNK2001: unresolved external symbol
__imp__PyLong_FromUnsignedLong
function_doc_signature.obj : error LNK2001: unresolved external symbol
__imp__PyLong_FromUnsignedLong
class.obj : error LNK2019: unresolved external symbol
__imp__PyArg_ParseTupleAndKeywords referenced in function _propert
y_init
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyErr_SetString referenced in function "privat
e: static void __cdecl boost::python::converter::`anonymous
namespace'::slot_rvalue_from_python<class std::complex<float
>,struct boost::python::converter::`anonymous namespace'::complex_rvalue_from_python>::construct(struct _object *,struct
 boost::python::converter::rvalue_from_python_stage1_data *)"
(?construct@?$slot_rvalue_from_python@V?$complex@M@std@@Uc
omplex_rvalue_from_python@?A0xa22ba1ea@converter@python@boost@@@?A0xa22ba1ea@converter@python@boost@@CAXPAU_object@@PAUr
value_from_python_stage1_data@345@@Z)
class.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetString
function.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetString
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyErr_SetString
errors.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetString
class.obj : error LNK2001: unresolved external symbol
__imp__PyExc_AttributeError
function.obj : error LNK2001: unresolved external symbol
__imp__PyExc_AttributeError
object_protocol.obj : error LNK2001: unresolved external symbol
__imp__PyExc_AttributeError
class.obj : error LNK2001: unresolved external symbol __imp__PyProperty_Type
class.obj : error LNK2019: unresolved external symbol
__imp__PyType_IsSubtype referenced in function "public: void __thi
scall boost::python::instance_holder::install(struct _object *)"
(?install@instance_holder@python@boost@@QAEXPAU_object@
@@Z)
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyType_IsSubtype
class.obj : error LNK2019: unresolved external symbol
__imp__PyObject_ClearWeakRefs referenced in function _instance_dea
lloc
class.obj : error LNK2001: unresolved external symbol __imp__PyBaseObject_Type
class.obj : error LNK2001: unresolved external symbol __imp__PyModule_Type
class.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError
function.obj : error LNK2001: unresolved external symbol
__imp__PyExc_RuntimeError
pickle_support.obj : error LNK2001: unresolved external symbol
__imp__PyExc_RuntimeError
errors.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError
class.obj : error LNK2019: unresolved external symbol
__imp__PyObject_SetAttrString referenced in function "protected: v
oid __thiscall boost::python::objects::class_base::setattr(char const
*,class boost::python::api::object const &)" (?set
attr@class_base@objects@python@boost@@IAEXPBDABVobject@api@34@@Z)
object_protocol.obj : error LNK2001: unresolved external symbol
__imp__PyObject_SetAttrString
class.obj : error LNK2019: unresolved external symbol
__imp__PyCFunction_NewEx referenced in function "protected: void _
_thiscall boost::python::objects::class_base::def_no_init(void)"
(?def_no_init@class_base@objects@python@boost@@IAEXXZ)
class.obj : error LNK2019: unresolved external symbol
__imp__PyStaticMethod_New referenced in function "protected: void
__thiscall boost::python::objects::class_base::make_method_static(char
const *)" (?make_method_static@class_base@objects
@python@boost@@IAEXPBD@Z)
class.obj : error LNK2019: unresolved external symbol
__imp__PyMem_Malloc referenced in function "public: static void *
__cdecl boost::python::instance_holder::allocate(struct _object
*,unsigned int,unsigned int)" (?allocate@instance_holder
@python@boost@@SAPAXPAU_object@@II@Z)
class.obj : error LNK2019: unresolved external symbol
__imp__PyMem_Free referenced in function "public: static void __cd
ecl boost::python::instance_holder::deallocate(struct _object *,void
*)" (?deallocate@instance_holder@python@boost@@SAXP
AU_object@@PAX@Z)
class.obj : error LNK2019: unresolved external symbol
__imp___PyType_Lookup referenced in function _class_setattro
class.obj : error LNK2019: unresolved external symbol
__imp__PyType_GenericAlloc referenced in function "void __cdecl bo
ost::python::objects::`dynamic initializer for
'class_type_object''(void)"
(??__Eclass_type_object@objects@python@boost@
@YAXXZ)
function.obj : error LNK2019: unresolved external symbol
__imp__PyTuple_Size referenced in function "public: struct _obj
ect * __thiscall boost::python::objects::function::call(struct _object
*,struct _object *)const " (?call@function@object
s@python@boost@@QBEPAU_object@@PAU5@0@Z)
function.obj : error LNK2019: unresolved external symbol
__imp__PyDict_Size referenced in function "public: struct _obje
ct * __thiscall boost::python::objects::function::call(struct _object
*,struct _object *)const " (?call@function@objects
@python@boost@@QBEPAU_object@@PAU5@0@Z)
function.obj : error LNK2019: unresolved external symbol
__imp__PyTuple_GetItem referenced in function "private: void __
thiscall boost::python::objects::function::argument_error(struct
_object *,struct _object *)const " (?argument_error@fun
ction@objects@python@boost@@ABEXPAU_object@@0@Z)
function.obj : error LNK2019: unresolved external symbol
__imp__PyErr_NewException referenced in function "private: void
 __thiscall boost::python::objects::function::argument_error(struct
_object *,struct _object *)const " (?argument_error@
function@objects@python@boost@@ABEXPAU_object@@0@Z)
function.obj : error LNK2001: unresolved external symbol
__imp___Py_NotImplementedStruct
function.obj : error LNK2019: unresolved external symbol
__imp__PyObject_SetAttr referenced in function "public: static
void __cdecl boost::python::objects::function::add_to_namespace(class
boost::python::api::object const &,char const *,cl
ass boost::python::api::object const &,char const *)"
(?add_to_namespace@function@objects@python@boost@@SAXABVobject@api
@34@PBD01@Z)
object_protocol.obj : error LNK2001: unresolved external symbol
__imp__PyObject_SetAttr
function.obj : error LNK2001: unresolved external symbol
__imp__PyStaticMethod_Type
function.obj : error LNK2019: unresolved external symbol
__imp__PyObject_GetItem referenced in function "public: static
void __cdecl boost::python::objects::function::add_to_namespace(class
boost::python::api::object const &,char const *,cl
ass boost::python::api::object const &,char const *)"
(?add_to_namespace@function@objects@python@boost@@SAXABVobject@api
@34@PBD01@Z)
object_protocol.obj : error LNK2001: unresolved external symbol
__imp__PyObject_GetItem
function.obj : error LNK2001: unresolved external symbol __imp__PyClass_Type
function.obj : error LNK2019: unresolved external symbol
__imp__PyMethod_New referenced in function _function_descr_get
function.obj : error LNK2019: unresolved external symbol
__imp__PyString_InternFromString referenced in function _functi
on_get_name
function.obj : error LNK2001: unresolved external symbol __imp__PyCFunction_Type
life_support.obj : error LNK2019: unresolved external symbol
__imp__PyWeakref_NewRef referenced in function "struct _obj
ect * __cdecl boost::python::objects::make_nurse_and_patient(struct
_object *,struct _object *)" (?make_nurse_and_patien
t@objects@python@boost@@YAPAU_object@@PAU4@0@Z)
life_support.obj : error LNK2019: unresolved external symbol
__imp___PyObject_New referenced in function "struct _object
 * __cdecl boost::python::objects::make_nurse_and_patient(struct
_object *,struct _object *)" (?make_nurse_and_patient@o
bjects@python@boost@@YAPAU_object@@PAU4@0@Z)
errors.obj : error LNK2001: unresolved external symbol __imp__PyExc_ValueError
errors.obj : error LNK2001: unresolved external symbol __imp__PyExc_IndexError
errors.obj : error LNK2001: unresolved external symbol
__imp__PyExc_OverflowError
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyExc_OverflowError
errors.obj : error LNK2019: unresolved external symbol
__imp__PyErr_NoMemory referenced in function __catch$?handle_exce
ption_impl@python@boost@@YA_NV?$function0@X@2@@Z$0
module.obj : error LNK2019: unresolved external symbol
__imp__Py_InitModule4 referenced in function "struct _object * __
cdecl boost::python::detail::init_module(char const *,void
(__cdecl*)(void))" (?init_module@detail@python@boost@@YAPAU_o
bject@@PBDP6AXXZ@Z)
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyUnicodeUCS2_FromEncodedObject referenced in
function _encode_string_unaryfunc
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyBool_Type
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyFloat_Type
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyComplex_Type
builtin_converters.obj : error LNK2001: unresolved external symbol
__imp__PyUnicode_Type
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyLong_AsLongLong referenced in function "publ
ic: static __int64 __cdecl boost::python::converter::`anonymous
namespace'::long_long_rvalue_from_python::extract(struct
 _object *)" (?extract@long_long_rvalue_from_python@?A0xa22ba1ea@converter@python@boost@@SA_JPAU_object@@@Z)
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyLong_AsUnsignedLongLong referenced in functi
on "public: static unsigned __int64 __cdecl
boost::python::converter::`anonymous
namespace'::unsigned_long_long_rvalue_f
rom_python::extract(struct _object *)"
(?extract@unsigned_long_long_rvalue_from_python@?A0xa22ba1ea@converter@python@boo
st@@SA_KPAU_object@@@Z)
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyComplex_RealAsDouble referenced in function
"public: static class std::complex<double> __cdecl
boost::python::converter::`anonymous namespace'::complex_rvalue_from_
python::extract(struct _object *)"
(?extract@complex_rvalue_from_python@?A0xa22ba1ea@converter@python@boost@@SA?AV?$comp
lex@N@std@@PAU_object@@@Z)
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyComplex_ImagAsDouble referenced in function
"public: static class std::complex<double> __cdecl
boost::python::converter::`anonymous namespace'::complex_rvalue_from_
python::extract(struct _object *)"
(?extract@complex_rvalue_from_python@?A0xa22ba1ea@converter@python@boost@@SA?AV?$comp
lex@N@std@@PAU_object@@@Z)
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyUnicodeUCS2_AsWideChar referenced in functio
n "public: static class std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> > __cde
cl boost::python::converter::`anonymous
namespace'::wstring_rvalue_from_python::extract(struct _object *)"
(?extract@wst
ring_rvalue_from_python@?A0xa22ba1ea@converter@python@boost@@SA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_
W@2@@std@@PAU_object@@@Z)
builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyString_Size referenced in function "public:
static class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __cdecl
boost::python::co
nverter::`anonymous
namespace'::string_rvalue_from_python::extract(struct _object *)"
(?extract@string_rvalue_from_pytho
n@?A0xa22ba1ea@converter@python@boost@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAU_object@@@Z)

builtin_converters.obj : error LNK2019: unresolved external symbol
__imp__PyLong_AsUnsignedLong referenced in function "
public: static unsigned char __cdecl
boost::python::converter::`anonymous
namespace'::unsigned_int_rvalue_from_python<un
signed char>::extract(struct _object *)"
(?extract@?$unsigned_int_rvalue_from_python@E@?A0xa22ba1ea@converter@python@boo
st@@SAEPAU_object@@@Z)
iterator.obj : error LNK2001: unresolved external symbol
__imp__PyExc_StopIteration
stl_iterator.obj : error LNK2019: unresolved external symbol
__imp__PyIter_Next referenced in function "public: void __t
hiscall boost::python::objects::stl_input_iterator_impl::increment(void)"
(?increment@stl_input_iterator_impl@objects@py
thon@boost@@QAEXXZ)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp__PyObject_GetAttr referenced in function "class bo
ost::python::api::object __cdecl boost::python::api::getattr(class
boost::python::api::object const &,class boost::pytho
n::api::object const &)"
(?getattr@api@python@boost@@YA?AVobject@123@ABV4123@0@Z)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp__PyErr_ExceptionMatches referenced in function "cl
ass boost::python::api::object __cdecl
boost::python::api::getattr(class boost::python::api::object const
&,class boost:
:python::api::object const &,class boost::python::api::object const
&)" (?getattr@api@python@boost@@YA?AVobject@123@ABV4
123@00@Z)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp__PyObject_SetItem referenced in function "void __c
decl boost::python::api::setitem(class boost::python::api::object
const &,class boost::python::api::object const &,class
 boost::python::api::object const &)"
(?setitem@api@python@boost@@YAXABVobject@123@00@Z)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp__PyObject_DelItem referenced in function "void __c
decl boost::python::api::delitem(class boost::python::api::object
const &,class boost::python::api::object const &)" (?d
elitem@api@python@boost@@YAXABVobject@123@0@Z)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp__PySequence_GetSlice referenced in function "struc
t _object * __cdecl boost::python::api::`anonymous
namespace'::apply_slice(struct _object *,struct _object *,struct _obj
ect *)" (?apply_slice@?A0xb75a7c44@api@python@boost@@YAPAU_object@@PAU5@00@Z)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp___PyEval_SliceIndex referenced in function "struct
 _object * __cdecl boost::python::api::`anonymous
namespace'::apply_slice(struct _object *,struct _object *,struct _obje
ct *)" (?apply_slice@?A0xb75a7c44@api@python@boost@@YAPAU_object@@PAU5@00@Z)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp__PySequence_SetSlice referenced in function "int _
_cdecl boost::python::api::`anonymous namespace'::assign_slice(struct
_object *,struct _object *,struct _object *,struct
 _object *)" (?assign_slice@?A0xb75a7c44@api@python@boost@@YAHPAU_object@@000@Z)
object_protocol.obj : error LNK2019: unresolved external symbol
__imp__PySequence_DelSlice referenced in function "int _
_cdecl boost::python::api::`anonymous namespace'::assign_slice(struct
_object *,struct _object *,struct _object *,struct
 _object *)" (?assign_slice@?A0xb75a7c44@api@python@boost@@YAHPAU_object@@000@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyObject_RichCompare referenced in function "cla
ss boost::python::api::object __cdecl
boost::python::api::operator>(class boost::python::api::object const
&,class boost
::python::api::object const &)"
(??Oapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Add referenced in function "class boost
::python::api::object __cdecl boost::python::api::operator+(class
boost::python::api::object const &,class boost::python
::api::object const &)" (??Hapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Subtract referenced in function "class
boost::python::api::object __cdecl boost::python::api::operator-(class
boost::python::api::object const &,class boost::p
ython::api::object const &)" (??Gapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Multiply referenced in function "class
boost::python::api::object __cdecl boost::python::api::operator*(class
boost::python::api::object const &,class boost::p
ython::api::object const &)" (??Dapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Divide referenced in function "class bo
ost::python::api::object __cdecl boost::python::api::operator/(class
boost::python::api::object const &,class boost::pyt
hon::api::object const &)" (??Kapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Remainder referenced in function "class
 boost::python::api::object __cdecl
boost::python::api::operator%(class boost::python::api::object const
&,class boost::
python::api::object const &)" (??Lapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Lshift referenced in function "class bo
ost::python::api::object __cdecl boost::python::api::operator<<(class
boost::python::api::object const &,class boost::py
thon::api::object const &)" (??6api@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Rshift referenced in function "class bo
ost::python::api::object __cdecl boost::python::api::operator>>(class
boost::python::api::object const &,class boost::py
thon::api::object const &)" (??5api@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_And referenced in function "class boost
::python::api::object __cdecl boost::python::api::operator&(class
boost::python::api::object const &,class boost::python
::api::object const &)" (??Iapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Xor referenced in function "class boost
::python::api::object __cdecl boost::python::api::operator^(class
boost::python::api::object const &,class boost::python
::api::object const &)" (??Tapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_Or referenced in function "class boost:
:python::api::object __cdecl boost::python::api::operator|(class
boost::python::api::object const &,class boost::python:
:api::object const &)" (??Uapi@python@boost@@YA?AVobject@012@ABV3012@0@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceAdd referenced in function "clas
s boost::python::api::object & __cdecl
boost::python::api::operator+=(class boost::python::api::object
&,class boost::py
thon::api::object const &)"
(??Yapi@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceSubtract referenced in function
"class boost::python::api::object & __cdecl
boost::python::api::operator-=(class boost::python::api::object
&,class boos
t::python::api::object const &)"
(??Zapi@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceMultiply referenced in function
"class boost::python::api::object & __cdecl
boost::python::api::operator*=(class boost::python::api::object
&,class boos
t::python::api::object const &)"
(??Xapi@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceDivide referenced in function "c
lass boost::python::api::object & __cdecl
boost::python::api::operator/=(class boost::python::api::object
&,class boost:
:python::api::object const &)"
(??_0api@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceRemainder referenced in function
 "class boost::python::api::object & __cdecl
boost::python::api::operator%=(class boost::python::api::object
&,class boo
st::python::api::object const &)"
(??_1api@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceLshift referenced in function "c
lass boost::python::api::object & __cdecl
boost::python::api::operator<<=(class boost::python::api::object
&,class boost
::python::api::object const &)"
(??_3api@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceRshift referenced in function "c
lass boost::python::api::object & __cdecl
boost::python::api::operator>>=(class boost::python::api::object
&,class boost
::python::api::object const &)"
(??_2api@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceAnd referenced in function "clas
s boost::python::api::object & __cdecl
boost::python::api::operator&=(class boost::python::api::object
&,class boost::py
thon::api::object const &)"
(??_4api@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceXor referenced in function "clas
s boost::python::api::object & __cdecl
boost::python::api::operator^=(class boost::python::api::object
&,class boost::py
thon::api::object const &)"
(??_6api@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
object_operators.obj : error LNK2019: unresolved external symbol
__imp__PyNumber_InPlaceOr referenced in function "class
 boost::python::api::object & __cdecl
boost::python::api::operator|=(class boost::python::api::object
&,class boost::pyt
hon::api::object const &)"
(??_5api@python@boost@@YAAAVobject@012@AAV3012@ABV3012@@Z)
wrapper.obj : error LNK2019: unresolved external symbol
__imp__PyDict_GetItemString referenced in function "protected: c
lass boost::python::override __thiscall
boost::python::detail::wrapper_base::get_override(char const *,struct
_typeobjec
t *)const " (?get_override@wrapper_base@detail@python@boost@@IBE?AVoverride@34@PBDPAU_typeobject@@@Z)
wrapper.obj : error LNK2001: unresolved external symbol __imp__PyMethod_Type
import.obj : error LNK2019: unresolved external symbol
__imp__PyImport_ImportModule referenced in function "class boost:
:python::api::object __cdecl boost::python::import(class
boost::python::str)" (?import@python@boost@@YA?AVobject@api@12@
Vstr@12@@Z)
exec.obj : error LNK2019: unresolved external symbol
__imp__PyRun_StringFlags referenced in function "class boost::pytho
n::api::object __cdecl boost::python::eval(class
boost::python::str,class boost::python::api::object,class
boost::python
::api::object)" (?eval@python@boost@@YA?AVobject@api@12@Vstr@12@V3412@1@Z)
exec.obj : error LNK2019: unresolved external symbol
__imp__PyEval_GetGlobals referenced in function "class boost::pytho
n::api::object __cdecl boost::python::eval(class
boost::python::str,class boost::python::api::object,class
boost::python
::api::object)" (?eval@python@boost@@YA?AVobject@api@12@Vstr@12@V3412@1@Z)
exec.obj : error LNK2019: unresolved external symbol
__imp__PyRun_FileExFlags referenced in function "class boost::pytho
n::api::object __cdecl boost::python::exec_file(class
boost::python::str,class boost::python::api::object,class boost::p
ython::api::object)"
(?exec_file@python@boost@@YA?AVobject@api@12@Vstr@12@V3412@1@Z)
exec.obj : error LNK2019: unresolved external symbol
__imp__PyFile_AsFile referenced in function "class boost::python::a
pi::object __cdecl boost::python::exec_file(class
boost::python::str,class boost::python::api::object,class boost::pytho
n::api::object)" (?exec_file@python@boost@@YA?AVobject@api@12@Vstr@12@V3412@1@Z)
exec.obj : error LNK2019: unresolved external symbol
__imp__PyFile_FromString referenced in function "class boost::pytho
n::api::object __cdecl boost::python::exec_file(class
boost::python::str,class boost::python::api::object,class boost::p
ython::api::object)"
(?exec_file@python@boost@@YA?AVobject@api@12@Vstr@12@V3412@1@Z)
..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.dll
: fatal error LNK
1120: 135 unresolved externals

        call "C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /MACHINE:X86
/subsystem:console /out:"..\..\..\..\bin.v2\libs\python\build\msvc
-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.dll"
/IMPLIB:"..\..\..\..\bin.v2\libs\python\build\msvc-10.0\d
ebug\threading-multi\boost_python-vc100-mt-gd-1_49.lib"
/LIBPATH:"C:\Python27\libs"   @"..\..\..\..\bin.v2\libs\python\b
uild\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.dll.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link.dll
..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_
49.dll ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.lib
..\..\..\.
.\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.pdb...
...removing ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.lib
...removing ..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_49.pdb
...skipped <pbin\msvc-10.0\debug\threading-multi>hello_ext.pyd for
lack of <p..\..\..\..\bin.v2\libs\python\build\msvc-1
0.0\debug\threading-multi>boost_python-vc100-mt-gd-1_49.lib...
...skipped <pbin\msvc-10.0\debug\threading-multi>hello_ext.lib for
lack of <p..\..\..\..\bin.v2\libs\python\build\msvc-1
0.0\debug\threading-multi>boost_python-vc100-mt-gd-1_49.lib...
...skipped <pbin\msvc-10.0\debug\threading-multi>hello_ext.pdb for
lack of <p..\..\..\..\bin.v2\libs\python\build\msvc-1
0.0\debug\threading-multi>boost_python-vc100-mt-gd-1_49.lib...
...skipped <p.>boost_python-vc100-mt-gd-1_49.dll for lack of
<p..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\thre
ading-multi>boost_python-vc100-mt-gd-1_49.dll...
...skipped <p.>hello_ext.pyd for lack of
<pbin\msvc-10.0\debug\threading-multi>hello_ext.pyd...
...skipped <pbin\hello.test\msvc-10.0\debug\threading-multi>hello for
lack of <pbin\msvc-10.0\debug\threading-multi>hell
o_ext.pyd...
...failed updating 3 targets...
...skipped 7 targets...



What am I doing wrong? What should I do to compile project successfully?

Thanks in Advance
Payaam Shivaa
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Adam Preble


On Tue, Apr 3, 2012 at 4:12 AM, Payam Shiva <[hidden email]> wrote:
Hi,

I have trouble compiling the simplest examples with Boost.Python. I
hope you could help me find out what I'm doing wrong.
I am using Microsoft Visual C++ 2010 on 64-bit Windows 7. I use 64-bit
version of Python 2.7.2 from Enthought Python Distribution 7.2-2. I
installed Boost as described in "Simplified Build From Source" section
of Boost getting started guide, i.e. going to Boost.Build directory
and typing:
bootstarp
.\b2

Boost compiled without errors (except for a warning about MPI). Then I
created user-config.jam in my home directory containing the following
lines:
using msvc : 10.0 ;
using python : 2.7 : C:\\Python 27 ;

Then I tried compiling the tutorial example, but I got the following
messages (and no DLL):

Building Boost.Python can be a real adventure.  From where I'm sitting right now, I wouldn't be able to tell you what is wrong because I'm no expert myself.  I had recently done a debug build, and wrote down my steps, at home.  However, I'm betting you don't really need to build.  It looks to me like you're not as concerned with building the DLL as you with just using them.  If that is the case, then maybe consider the pre-built libraries you could get here:


That *should* just work, but you could smash into some odd compatibility stuff with however Enthought built their distribution--then you'd have to build from source.

_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Adam Preble
For what it's worth, here's what I have when I did a 32-bit debugging build of Stackless Python.  Note that I have turned on debugging and stuff like that.  You don't need that, but it should give you an idea:

user-config.jam
using python : 2.6 : D:\\temp\\stackless_src\\python-2.6.5-stackless\\PCbuild\\python_d.exe
  : D:\\Python26\\Include
  : D:\\temp\\stackless_src\\python-2.6.5-stackless\\PCbuild
  : <python-debugging>on ;

my build sequence (for doing the whole thing)
set INCLUDE=D:\Python26\include;D:\Python26\include\Stackless
b2 --toolset=msvc-10.0 --build-type=complete stage
b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=32 stage
b2 --toolset=msvc-10.0 --user-config=user-config.jam --with-python --build-type=complete architecture=x86 address-model=32 stage

 
Building Boost.Python can be a real adventure.  From where I'm sitting right now, I wouldn't be able to tell you what is wrong because I'm no expert myself.  I had recently done a debug build, and wrote down my steps, at home.  However, I'm betting you don't really need to build.  It looks to me like you're not as concerned with building the DLL as you with just using them.  If that is the case, then maybe consider the pre-built libraries you could get here:


That *should* just work, but you could smash into some odd compatibility stuff with however Enthought built their distribution--then you'd have to build from source.


_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Payam Shiva
I downloaded the prebuilt binaries from here: http://boost.teeks99.com/
but I don't know how to use them. Right now, Boost source is
decompressed in C:\Boost\boost_1_49_0 and the prebuilt binaries are in
C:\Boost\lib32. I couldn't find anything in the jamfile about
binaries. Can you help me configure them?

Thanks
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Adam Preble
Now that you have the binaries, you should be ready to use them.  There should be no need to configure jam files.  If you start pointing to those libraries in your Visual Studio project, they should link with your code.  This assumes the binaries you're using mate up with how you'd building your Visual Studio project (32-bit, 64-bit, that stuff).

On Fri, Apr 6, 2012 at 12:12 AM, Payam Shiva <[hidden email]> wrote:
I downloaded the prebuilt binaries from here: http://boost.teeks99.com/
but I don't know how to use them. Right now, Boost source is
decompressed in C:\Boost\boost_1_49_0 and the prebuilt binaries are in
C:\Boost\lib32. I couldn't find anything in the jamfile about
binaries. Can you help me configure them?

Thanks
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig


_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Payam Shiva
I'm totally new to Boost.Python, so I'm trying to follow the tutorial.
It says to cd to the tutorial folder and invoke bjam. When I do this,
it still gives me the same error message.

I tried using VS too. I did the following:
1. I created a new project (W32 Project and I chose DLL output)
2. I added C:\Boost\boost_1_49_0 and C:\Python27\include to C/C++
additional include directories in property manager
3. I added C:\Boost\lib32 and C:\Python27\libs to additional linker
directories in property manager
4. I choose not to use precompiled headers
5. I delete the automatically created files, create a new C++ source
file named hello.cpp and copy the contents of hello world example from
the tutorial in it.
6. I build the project. It gives me the following message:

1>------ Build started: Project: BPTest, Configuration: Release Win32 ------
1>Build started 4/6/2012 1:25:35 PM.
1>InitializeBuildStatus:
1>  Touching "Release\BPTest.unsuccessfulbuild".
1>ClCompile:
1>  hello.cpp
1>Link:
1>     Creating library c:\users\payaam\documents\visual studio
2010\Projects\BPTest\Release\BPTest.lib and object
c:\users\payaam\documents\visual studio
2010\Projects\BPTest\Release\BPTest.exp
1>hello.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
1>hello.obj : error LNK2001: unresolved external symbol __imp__PyString_Type
1>c:\users\payaam\documents\visual studio
2010\Projects\BPTest\Release\BPTest.dll : fatal error LNK1120: 2
unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:10.12
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Please help me understand what to do to build this simple example,
under VS or bjam.

Thanks

On 4/6/12, Adam Preble <[hidden email]> wrote:

> Now that you have the binaries, you should be ready to use them.  There
> should be no need to configure jam files.  If you start pointing to those
> libraries in your Visual Studio project, they should link with your code.
>  This assumes the binaries you're using mate up with how you'd building
> your Visual Studio project (32-bit, 64-bit, that stuff).
>
> On Fri, Apr 6, 2012 at 12:12 AM, Payam Shiva <[hidden email]>wrote:
>
>> I downloaded the prebuilt binaries from here: http://boost.teeks99.com/
>> but I don't know how to use them. Right now, Boost source is
>> decompressed in C:\Boost\boost_1_49_0 and the prebuilt binaries are in
>> C:\Boost\lib32. I couldn't find anything in the jamfile about
>> binaries. Can you help me configure them?
>>
>> Thanks
>> _______________________________________________
>> Cplusplus-sig mailing list
>> [hidden email]
>> http://mail.python.org/mailman/listinfo/cplusplus-sig
>>
>
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Wojciech Mamrak
Hi,

I am lost. Do you wan't to build boost::python libraries or an example
using them? Bjam is used for the former only.

regards

W dniu 6 kwietnia 2012 11:14 użytkownik Payam Shiva
<[hidden email]> napisał:

> I'm totally new to Boost.Python, so I'm trying to follow the tutorial.
> It says to cd to the tutorial folder and invoke bjam. When I do this,
> it still gives me the same error message.
>
> I tried using VS too. I did the following:
> 1. I created a new project (W32 Project and I chose DLL output)
> 2. I added C:\Boost\boost_1_49_0 and C:\Python27\include to C/C++
> additional include directories in property manager
> 3. I added C:\Boost\lib32 and C:\Python27\libs to additional linker
> directories in property manager
> 4. I choose not to use precompiled headers
> 5. I delete the automatically created files, create a new C++ source
> file named hello.cpp and copy the contents of hello world example from
> the tutorial in it.
> 6. I build the project. It gives me the following message:
>
> 1>------ Build started: Project: BPTest, Configuration: Release Win32 ------
> 1>Build started 4/6/2012 1:25:35 PM.
> 1>InitializeBuildStatus:
> 1>  Touching "Release\BPTest.unsuccessfulbuild".
> 1>ClCompile:
> 1>  hello.cpp
> 1>Link:
> 1>     Creating library c:\users\payaam\documents\visual studio
> 2010\Projects\BPTest\Release\BPTest.lib and object
> c:\users\payaam\documents\visual studio
> 2010\Projects\BPTest\Release\BPTest.exp
> 1>hello.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
> 1>hello.obj : error LNK2001: unresolved external symbol __imp__PyString_Type
> 1>c:\users\payaam\documents\visual studio
> 2010\Projects\BPTest\Release\BPTest.dll : fatal error LNK1120: 2
> unresolved externals
> 1>
> 1>Build FAILED.
> 1>
> 1>Time Elapsed 00:00:10.12
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
>
> Please help me understand what to do to build this simple example,
> under VS or bjam.
>
> Thanks
>
> On 4/6/12, Adam Preble <[hidden email]> wrote:
>> Now that you have the binaries, you should be ready to use them.  There
>> should be no need to configure jam files.  If you start pointing to those
>> libraries in your Visual Studio project, they should link with your code.
>>  This assumes the binaries you're using mate up with how you'd building
>> your Visual Studio project (32-bit, 64-bit, that stuff).
>>
>> On Fri, Apr 6, 2012 at 12:12 AM, Payam Shiva <[hidden email]>wrote:
>>
>>> I downloaded the prebuilt binaries from here: http://boost.teeks99.com/
>>> but I don't know how to use them. Right now, Boost source is
>>> decompressed in C:\Boost\boost_1_49_0 and the prebuilt binaries are in
>>> C:\Boost\lib32. I couldn't find anything in the jamfile about
>>> binaries. Can you help me configure them?
>>>
>>> Thanks
>>> _______________________________________________
>>> Cplusplus-sig mailing list
>>> [hidden email]
>>> http://mail.python.org/mailman/listinfo/cplusplus-sig
>>>
>>
> _______________________________________________
> Cplusplus-sig mailing list
> [hidden email]
> http://mail.python.org/mailman/listinfo/cplusplus-sig
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Payam Shiva
What I am trying to do is the latter (using Boost.Python). Because I'm
completely new to this, I am trying to follow the tutorial. Please
take a look at this link:
http://www.boost.org/doc/libs/1_49_0/libs/python/doc/tutorial/doc/html/python/hello.html

If it's possible to write and build C++ parts in VS, I would
definitely  use it. The problem is I don't know how. I explained what
happened when I tried building the example in the link above using
both VS and bjam in my previous posts. If you know how I can setup
build environment correctly, please help me.

Thanks
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Adam Preble
For my stuff, under Linker->Input, I explicitly listed my Boost.Python lib and the Python lib.  Like so:

libboost_python-vc100-mt-gy-1_47.lib
python26_d.lib

Actual names for yours will vary.  By chance are you new to Visual Studio generally?  

On Fri, Apr 6, 2012 at 8:50 AM, Payam Shiva <[hidden email]> wrote:
What I am trying to do is the latter (using Boost.Python). Because I'm
completely new to this, I am trying to follow the tutorial. Please
take a look at this link:
http://www.boost.org/doc/libs/1_49_0/libs/python/doc/tutorial/doc/html/python/hello.html

If it's possible to write and build C++ parts in VS, I would
definitely  use it. The problem is I don't know how. I explained what
happened when I tried building the example in the link above using
both VS and bjam in my previous posts. If you know how I can setup
build environment correctly, please help me.

Thanks
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig


_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Paul Kroitor

We had a similar problem last September.

 

http://mail.python.org/pipermail/cplusplus-sig/2011-September/016142.html

 

It's not clear to me if your issue is the same one, a related one, or simply similar.

 

We created a ticket on the bugtracking system (https://svn.boost.org/trac/boost/ticket/5877) , but nothing seems to have come of it. In the meantime, we ignored the fact that the sample didn't compile, and just started using boost.python in VS2010, which worked out fine.

 

Paul Kroitor

 

From: cplusplus-sig-bounces+paul=[hidden email] [mailto:cplusplus-sig-bounces+paul=[hidden email]] On Behalf Of Adam Preble
Sent: April-06-12 10:03 AM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] Problem Compiling Boost.Python Example

 

For my stuff, under Linker->Input, I explicitly listed my Boost.Python lib and the Python lib.  Like so:

 

libboost_python-vc100-mt-gy-1_47.lib

python26_d.lib

 

Actual names for yours will vary.  By chance are you new to Visual Studio generally?  

 

On Fri, Apr 6, 2012 at 8:50 AM, Payam Shiva <[hidden email]> wrote:

What I am trying to do is the latter (using Boost.Python). Because I'm
completely new to this, I am trying to follow the tutorial. Please
take a look at this link:
http://www.boost.org/doc/libs/1_49_0/libs/python/doc/tutorial/doc/html/python/hello.html

If it's possible to write and build C++ parts in VS, I would
definitely  use it. The problem is I don't know how. I explained what
happened when I tried building the example in the link above using
both VS and bjam in my previous posts. If you know how I can setup
build environment correctly, please help me.


Thanks
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig

 


_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Adam Preble
There's a good question: How could one contribute changes to the web documentation?  There have been a few things in the past I feel would have been more widely understandable.  For me, I remember getting debug symbols was an adventure.  The documentation was technically all there, but it didn't make sense until I had already succeeded.  A lot of documentation ends up being that way so I'm not too surprised, and for all it matters if I have an idea I figure somebody would take it.

On Fri, Apr 6, 2012 at 9:30 AM, Paul Kroitor <[hidden email]> wrote:

We had a similar problem last September.

 

http://mail.python.org/pipermail/cplusplus-sig/2011-September/016142.html

 

It's not clear to me if your issue is the same one, a related one, or simply similar.

 

We created a ticket on the bugtracking system (https://svn.boost.org/trac/boost/ticket/5877) , but nothing seems to have come of it. In the meantime, we ignored the fact that the sample didn't compile, and just started using boost.python in VS2010, which worked out fine.

 

Paul Kroitor

 

From: cplusplus-sig-bounces+paul=[hidden email] [mailto:[hidden email]=[hidden email]] On Behalf Of Adam Preble
Sent: April-06-12 10:03 AM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] Problem Compiling Boost.Python Example

 

For my stuff, under Linker->Input, I explicitly listed my Boost.Python lib and the Python lib.  Like so:

 

libboost_python-vc100-mt-gy-1_47.lib

python26_d.lib

 

Actual names for yours will vary.  By chance are you new to Visual Studio generally?  

 

On Fri, Apr 6, 2012 at 8:50 AM, Payam Shiva <[hidden email]> wrote:

What I am trying to do is the latter (using Boost.Python). Because I'm
completely new to this, I am trying to follow the tutorial. Please
take a look at this link:
http://www.boost.org/doc/libs/1_49_0/libs/python/doc/tutorial/doc/html/python/hello.html

If it's possible to write and build C++ parts in VS, I would
definitely  use it. The problem is I don't know how. I explained what
happened when I tried building the example in the link above using
both VS and bjam in my previous posts. If you know how I can setup
build environment correctly, please help me.


Thanks
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig

 


_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig


_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Payam Shiva
Thank you Adam. I tried what you said, but it doesn't work for me. It
gave an error, among a bunch of others, that it couldn't find
python26.lib. I have Python 2.7 installed on my computer, so it makes
sense. Maybe the person who compiled the libraries had Python 2.6
installed.
Anyway, just out of curiosity, I changed the name of python27.lib in
C:\Python27\libs to python26.lib and also changed it in in
Linker->Input->Additional Dependencies. This time it said it couldn't
find python27.lib. I don't understand. Does it expect python27.lib and
python26.lib to be present at the same time.

After four days and putting hours of work trying to figure out how
this thing woks, I can't even compile a hello world example. I'm
giving up. Thank you for being so helpful, but maybe Boost.Python just
isn't for me. I might check it out again a couple of years later. I
hope by that time, someone has created a simple way to install it, so
everyone could start using it right away, just like Python itself.

Thanks
Goodbye
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Wojciech Mamrak
Wait, don't give up :)
Tomorrow I will send you a msvc solution of a simple application that
embedds python, so that you can check the compilation, ok?

W dniu 6 kwietnia 2012 18:03 użytkownik Payam Shiva
<[hidden email]> napisał:

> Thank you Adam. I tried what you said, but it doesn't work for me. It
> gave an error, among a bunch of others, that it couldn't find
> python26.lib. I have Python 2.7 installed on my computer, so it makes
> sense. Maybe the person who compiled the libraries had Python 2.6
> installed.
> Anyway, just out of curiosity, I changed the name of python27.lib in
> C:\Python27\libs to python26.lib and also changed it in in
> Linker->Input->Additional Dependencies. This time it said it couldn't
> find python27.lib. I don't understand. Does it expect python27.lib and
> python26.lib to be present at the same time.
>
> After four days and putting hours of work trying to figure out how
> this thing woks, I can't even compile a hello world example. I'm
> giving up. Thank you for being so helpful, but maybe Boost.Python just
> isn't for me. I might check it out again a couple of years later. I
> hope by that time, someone has created a simple way to install it, so
> everyone could start using it right away, just like Python itself.
>
> Thanks
> Goodbye
> _______________________________________________
> Cplusplus-sig mailing list
> [hidden email]
> http://mail.python.org/mailman/listinfo/cplusplus-sig
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Payam Shiva
2012/4/7 Wojciech Mamrak <[hidden email]>:
> Wait, don't give up :)
> Tomorrow I will send you a msvc solution of a simple application that
> embedds python, so that you can check the compilation, ok?

Thank you. I'll be waiting.
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Niall Douglas
In reply to this post by Payam Shiva
On 6 Apr 2012 at 20:33, Payam Shiva wrote:

> Thank you Adam. I tried what you said, but it doesn't work for me. It
> gave an error, among a bunch of others, that it couldn't find
> python26.lib. I have Python 2.7 installed on my computer, so it makes
> sense. Maybe the person who compiled the libraries had Python 2.6
> installed.

That looks extremely likely.

> Anyway, just out of curiosity, I changed the name of python27.lib in
> C:\Python27\libs to python26.lib and also changed it in in
> Linker->Input->Additional Dependencies. This time it said it couldn't
> find python27.lib. I don't understand. Does it expect python27.lib and
> python26.lib to be present at the same time.

PE stub linker files (the .libs) are tied to their DLL. Even if you
rename them it knows what they really are.

> After four days and putting hours of work trying to figure out how
> this thing woks, I can't even compile a hello world example. I'm
> giving up. Thank you for being so helpful, but maybe Boost.Python just
> isn't for me. I might check it out again a couple of years later. I
> hope by that time, someone has created a simple way to install it, so
> everyone could start using it right away, just like Python itself.

With respect, if you're struggling with getting MSVC working then
probably starting with Boost is ambitious.

Generally speaking, the documentation for Boost assumes a certain
minimum understanding, and I've always found that level of
understanding is considerably higher than the average C++ programmer.
I struggled throughout my time with Boost, and I had previously
written my own metaprogramming library.

Hence if you're struggling now, you are likely to be struggling for
the foreseeable future. That said, investing a full-time equivalent
year of your life mastering Boost will improve you as a person. I'm
not joking - expect your higher order logic skills to improve
immensely, and if you can find an employer capable of recognising
that skill expect a highly rewarded career.

But it does take at least 2500 hours. Very few programmers can do it
in less. It's still worth doing though, and it'll stand to you for
the rest of your life. I'd urge you to stick with it. Start with
figuring out how to build Boost using a non-bjam build system (and
NOT using Visual Studio). I personally like scons as it's really
python, even though it can't scale.

Niall

--
Technology & Consulting Services - ned Productions Limited.
http://www.nedproductions.biz/. VAT reg: IE 9708311Q.
Work Portfolio: http://careers.stackoverflow.com/nialldouglas/



_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Compiling Boost.Python Example

Wojciech Mamrak
Exemplary project sent.

W dniu 7 kwietnia 2012 14:29 użytkownik Niall Douglas
<[hidden email]> napisał:

> On 6 Apr 2012 at 20:33, Payam Shiva wrote:
>
>> Thank you Adam. I tried what you said, but it doesn't work for me. It
>> gave an error, among a bunch of others, that it couldn't find
>> python26.lib. I have Python 2.7 installed on my computer, so it makes
>> sense. Maybe the person who compiled the libraries had Python 2.6
>> installed.
>
> That looks extremely likely.
>
>> Anyway, just out of curiosity, I changed the name of python27.lib in
>> C:\Python27\libs to python26.lib and also changed it in in
>> Linker->Input->Additional Dependencies. This time it said it couldn't
>> find python27.lib. I don't understand. Does it expect python27.lib and
>> python26.lib to be present at the same time.
>
> PE stub linker files (the .libs) are tied to their DLL. Even if you
> rename them it knows what they really are.
>
>> After four days and putting hours of work trying to figure out how
>> this thing woks, I can't even compile a hello world example. I'm
>> giving up. Thank you for being so helpful, but maybe Boost.Python just
>> isn't for me. I might check it out again a couple of years later. I
>> hope by that time, someone has created a simple way to install it, so
>> everyone could start using it right away, just like Python itself.
>
> With respect, if you're struggling with getting MSVC working then
> probably starting with Boost is ambitious.
>
> Generally speaking, the documentation for Boost assumes a certain
> minimum understanding, and I've always found that level of
> understanding is considerably higher than the average C++ programmer.
> I struggled throughout my time with Boost, and I had previously
> written my own metaprogramming library.
>
> Hence if you're struggling now, you are likely to be struggling for
> the foreseeable future. That said, investing a full-time equivalent
> year of your life mastering Boost will improve you as a person. I'm
> not joking - expect your higher order logic skills to improve
> immensely, and if you can find an employer capable of recognising
> that skill expect a highly rewarded career.
>
> But it does take at least 2500 hours. Very few programmers can do it
> in less. It's still worth doing though, and it'll stand to you for
> the rest of your life. I'd urge you to stick with it. Start with
> figuring out how to build Boost using a non-bjam build system (and
> NOT using Visual Studio). I personally like scons as it's really
> python, even though it can't scale.
>
> Niall
>
> --
> Technology & Consulting Services - ned Productions Limited.
> http://www.nedproductions.biz/. VAT reg: IE 9708311Q.
> Work Portfolio: http://careers.stackoverflow.com/nialldouglas/
>
>
>
> _______________________________________________
> Cplusplus-sig mailing list
> [hidden email]
> http://mail.python.org/mailman/listinfo/cplusplus-sig
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Loading...