[C++-sig] libboost_python-gcc43-mt.so or without "mt"?
Dear list participants, I have installed boost including the python lib using the boostrap.sh installation script, and now I have the following libraries under /lib (linux system): libboost_python-gcc43-mt-1_39.a libboost_python-gcc43-mt-1_39.so libboost_python-gcc43-mt-1_39.so.1.39.0 libboost_python-gcc43-mt.a libboost_python-gcc43-mt.so However when I build a python extension module with bjam, and when I import the newly built module in python, the problem is: $ ipython In [1]: import myModule ImportError: libboost_python-gcc43-1_39.so.1.39.0: cannot open shared object file: No such file or directory Of course, I can copy and rename the mt-libraries to the expected library name. But is there a possibility to build the python extension so that the exististing libboost_python-gcc43-mt.so will be linked instead of some other name? Can I configure which libboost_python will be used somewhere in boost-build.jam or user-config.jam or Jamroot? Thanks Werner ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig
[C++-sig] problems building a pyd under vc++ with distutils
I'm under vc++ 9.0 and I'm having problem when trying to build a simple *.pyd... (using distutils) When I build the dll from the IDE it produces a DLL (not a *.pyd) and no compiler or linker errors. But when I use distutils it just output a lot of errors... I can't find the problem... /*-pydll.cpp:--*/ #include #include using namespace boost::python; __declspec(dllexport) std::string greet() { return "Hello Python"; }; BOOST_PYTHON_MODULE(hello) { def("greet", greet); } -- #setup.py from distutils.core import setup, Extension module1 = Extension('hello', sources = ["pydll.cpp"]) setup (name = 'pydll', version = '1.0', description = 'This is a demo package', ext_modules = [module1]) - (under visual studio 2008, python 2.6, boost 1.38.0) Thank you Juan___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig