|
Re: Re: using BOOST_PYTHON_STATIC_LIB: msg#00278python.c++
[2003-05-27] David Abrahams wrote: >Rene Rivera <grafik666@xxxxxxxxxxxxxxxxxxxxx> writes: > >> [2003-05-27] David Abrahams wrote: >> >>>"Achim Domma \(ProCoders\)" <domma@xxxxxxxxxxxxx> writes: >>> >>>> Hello, >>>> >>>> is it still possible to use boost_python as static library? In config.hpp >> I >>>> found BOOST_PYTHON_STATIC_LIB, but it seems not to be mentioned anywhere >> in >>>> the documentation. I defined it like this in my Jamfile: >>>> >>>> <vc7><*><define>BOOST_PYTHON_STATIC_LIB >>>> >>>> Bjam is linking with libboost_python.lib then, but I get a lot of >> unresolved >>>> externals, all refering to boost.python functions using >>>> __declspec(dllimport) which seems wrong to me. Is it my fault or do I >> have >>>> to use the shared library? >>> >>>You shouldn't have to use the shared library. Oops, as far as I can >>>tell, if you're trying to use boost_python.lib from the bin-stage >>>directory, we have a problem: the import library for the Boost.Python >>>DLL has the same name, and overwrites the static library. For the >>>time being, until we figure out how to fix this, you should dig into >>>the bin/... directories to find the static library build. >>> >>>Rene, do you have a solution up your sleeve for this one? >> >> No trick solution needed. It should be putting the static lib to the >> stage-bin with the "libboost_python.lib" name. At least that's what it looks >> it does when I run the bjam in the libs/python/build directory. And from the >> above message it looks like Achim is using that version of the lib. > >And how would that name differ from the name of the import library >used for libboost_python.dll? Under Windows it produces: boost_python.dll boost_python.lib boost_python_debug.dll boost_python_debug.lib libboost_python.lib libboost_python_debug.lib The significant part is that the static lib has the "lib" prefix. -- grafik - Don't Assume Anything -- rrivera@xxxxxxx - grafik@xxxxxxxxxxxxxxxxxxxxx -- 102708583@icq |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: using BOOST_PYTHON_STATIC_LIB: 00278, David Abrahams |
|---|---|
| Next by Date: | Re: Re: list.len(): 00278, Ralf W. Grosse-Kunstleve |
| Previous by Thread: | Re: using BOOST_PYTHON_STATIC_LIBi: 00278, David Abrahams |
| Next by Thread: | RE: Re: using BOOST_PYTHON_STATIC_LIB: 00278, Achim Domma \(ProCoders\) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |