[C++-sig] boost python liking problems

Eduardo Picado eduardo.picado at gmail.com
Fri Jul 28 15:27:43 CEST 2006


Hi,

I'm trying to use Boost Python to wrap a 3rd party library. I have the
headers, DLLs and a .lib file.
When I try to compile my .cpp files I receive linkage errors:

-------------
Creating library
bin\telismaPyste\TASRNlSmlResult.pyd\msvc\debug\threading-multi\TASRNlSmlResult.lib
and object bin\telismaPyste\TASRNlSmlResult.pyd\msvc\debug\threading-multi\TASRNlSmlResult.exp
TASRNlSmlResult.obj : error LNK2001: unresolved external symbol
"public: char const * __thiscall TASRNlSmlResult::str(void)const "
(?str at TASRNlSmlResult@@QBEPBDXZ)

….......

    "link" /nologo /INCREMENTAL:NO /DEBUG /DLL /subsystem:console
/out:"bin\telismaPyste\TASRNlSmlResult.pyd\msvc\debug\threading-multi\TASRNlSmlResult.pyd"
/IMPLIB:"bin\telismaPyste\TASRNlSmlResult.pyd\msvc\debug\threading-multi\TASRNlSmlResult.lib
" /LIBPATH:"c:\python22\libs"
/LIBPATH:"bin\boost\libs\python\build\boost_python.dll\msvc\debug\threading-multi"
/LIBPATH:"C:\PROGRA~1\MICROS~4\VC98\lib" "boost_python.lib"
@"bin\telismaPyste\TASRNlSmlResult.pyd\msvc\debug\threading-multi\TASRNlSmlResult.CMD"


...failed vc-Link
bin\telismaPyste\TASRNlSmlResult.pyd\msvc\debug\threading-multi\TASRNlSmlResult.pyd
bin\telismaPyste\TASRNlSmlResult.pyd\msvc\debug\threading-multi\TASRNlSmlResult.lib...
...failed updating 1 target...

---------------

I'm using bjam with canonical options. I guess I'm not correcting
specifying  where is the .lib file. How can I do this? Any ideas?

Thanks,

Eduardo Picado


More information about the Cplusplus-sig mailing list