Hi I got an answer for this problem from Steven Watanabe on the boost-users list. He wrote:
========================= The linker is looking for the import library for a DLL. You can build this with bjam --with-python link=shared or you can compile your project with -DBOOST_PYTHON_STATIC_LIB (Boost.Python uses different auto-link conventions from the rest of Boost) ========================== That fixes my problem. Best regards David ________________________________________ From: cplusplus-sig-bounces+david.aldrich=eu.nec....@python.org [cplusplus-sig-bounces+david.aldrich=eu.nec....@python.org] On Behalf Of Philip Jonientz - NEXPLORE AG [...@nexplore.ch] Sent: 08 July 2010 07:43 To: Development of Python/C++ integration Subject: Re: [C++-sig] Newbie question about Boost.Python Hi I had a similar problem some time ago, I just don't exactly remember, how I solved it... For me, this lib-file is located in: \bin.v2\libs\python\build\msvc-10.0\debug\threading-multi If I remember correctly, I simply moved some folders and files around, until it fit. -----Ursprüngliche Nachricht----- Von: cplusplus-sig-bounces+pj=nexplore...@python.org [mailto:cplusplus-sig-bounces+pj=nexplore...@python.org] Im Auftrag von David Aldrich Gesendet: Mittwoch, 7. Juli 2010 15:04 An: cplusplus-sig@python.org Betreff: [C++-sig] Newbie question about Boost.Python Hi I am trying to use Boost.Python on Windows XP using Visual C++ 2008 Express and Python 2.7. I have built Boost using bjam. The generated libraries include: libboost_python-vc90-mt-gd-1_43.lib I am now trying to run the example in the boost.python 'EmbeddingPython wiki page, which begins: #include <boost/python.hpp> using namespace boost::python; int main( int argc, char ** argv ) { try { Py_Initialize(); [snip] When I build it I get error: LINK : fatal error LNK1104: cannot open file 'boost_python-vc90-mt-gd-1_43.lib' Please can anyone suggest why the linker wants a library file beginning 'boost_python' when bjam has generated library files beginning 'libboost_python' ? Best regards David _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig Click https://www.mailcontrol.com/sr/4UrU4bFfymzTndxI!oX7UoEGNNKKZK+e8S19yqcE31+woBqi0QOlYHAZsmfuHmZeEGynLBNIB!Z1EP!VjHY16w== to report this email as spam. _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig