[C++-sig] Embedding...

Stefan Seefeld seefeld at sympatico.ca
Wed Oct 25 23:47:17 CEST 2006


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...



More information about the Cplusplus-sig mailing list