[C++-sig] Newbie question about Boost.Python

Philip Jonientz - NEXPLORE AG pj at nexplore.ch
Thu Jul 8 08:43:22 CEST 2010


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.ch at python.org [mailto:cplusplus-sig-bounces+pj=nexplore.ch at python.org] Im Auftrag von David Aldrich
Gesendet: Mittwoch, 7. Juli 2010 15:04
An: cplusplus-sig at 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 at python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


More information about the Cplusplus-sig mailing list