[C++-sig] Embedding...

Beau Sapach beau.sapach at ualberta.ca
Thu Oct 26 00:40:42 CEST 2006


Exec and import show up in the output:


vc-C++
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-7_1\release\threadi
ng-multi\exec.obj
exec.cpp
vc-C++
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-7_1\release\threadi
ng-multi\import.obj
import.cpp
vc-Link
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-7_1\release\threadi
ng-multi\boost_python.dll
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-7_1\release\threadi
ng-multi\boost_python.lib
   Creating library
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-7_1\release\threadi
ng-multi\boost_python.lib and object
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-7_1\release\threadi
ng-multi\boost_python.exp
FileClone bin-stage\boost_python.dll
FileClone bin-stage\boost_python.lib


AND

vc-C++
..\..\..\bin\boost\libs\python\build\libboost_python.lib\vc-7_1\release\thre
ading-multi\exec.obj
exec.cpp
vc-C++
..\..\..\bin\boost\libs\python\build\libboost_python.lib\vc-7_1\release\thre
ading-multi\import.obj
import.cpp
vc-Archive
..\..\..\bin\boost\libs\python\build\libboost_python.lib\vc-7_1\release\thre
ading-multi\libboost_python.lib
Microsoft (R) Library Manager Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

...
...
...
"..\..\..\bin\boost\libs\python\build\libboost_python.lib\vc-7_1\release\thr
eading-multi\exec.obj" 
"..\..\..\bin\boost\libs\python\build\libboost_python.lib\vc-7_1\release\thr
eading-multi\import.obj" 
FileClone bin-stage\libboost_python.lib
...updated 78 targets...



I'm not sure if this means that it compiled and linked properly but I
certainly don't see any errors...
What is libboost_python.lib for?

Beau

-----Original Message-----
From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org] On
Behalf Of Stefan Seefeld
Sent: Wednesday, October 25, 2006 3:47 PM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] Embedding...

Beau Sapach wrote:
> Hi everyone,
> 
> I've downloaded the CVS version of boost(following instructions from
> http://www.boost.org/more/getting_started.html#CVS) and built using bjam.
> 
> I built with the following command:
> 
> 	C:\boost\libs\python\build>bjam -sPYTHON_VERSION=2.5
> -sPYTHON_ROOT=c:\python25 -sPYTHON_LIB_PATH=c:\python25\libs 
> -sTOOLS=vc-7_1 -sBUILD=debug
> 
> I then copied all the resulting lib and dll files (from bin-stage) to 
> c:\boost\dll which is on my system's PATH and is also listed in visual 
> studio under "library files".  I've also explicitly added 
> boost_python_debug.lib and python25.lib to my linker command line. My 
> test program compiles fine but when it comes to linking it says:
> 
> 	boostapp error LNK2019: unresolved external symbol "class 
> boost::python::api::object __cdecl boost::python::exec(class 
> boost::python::str,class boost::python::api::object,class 
> boost::python::api::object)"

1) Can you confirm (by simply visually checking bjam's output) that exec.cpp
and import.cpp
   get compiled and linked into the library ?

2) Are you sure the library you are linking with is indeed the one you just
compiled, as opposed
   to one you have compiled / installed previously from an older version of
the code ?

Regards,
		Stefan


-- 

      ...ich hab' noch einen Koffer in Berlin...
_______________________________________________
C++-sig mailing list
C++-sig at python.org
http://mail.python.org/mailman/listinfo/c++-sig





More information about the Cplusplus-sig mailing list