Boost.Python dynamic library requested by auto-linker?
IDE: Visual Studio 9 (MSVC Compiler) Platform: Windows I have built the boost static libraries by calling the following command line at the boost trunk directory: *bjam --toolset=msvc link=static debug stage* This successfully builds all of the libboost_*.lib header files. However, when I build my application (that uses boost), it spits out the following linker error: *LINK : fatal error LNK1104: cannot open file 'boost_python-vc90-mt-gd-1_35.lib'* Note that I do not define BOOST_ALL_DYN_LINK or any other boost-related preprocessor directive. Any reason why boost is looking for a dynamic library for Boost.Python instead of the static one?
hi you need to define BOOST_ALL_NO_LIB=1 or something like that.
On Feb 18, 2008 2:49 PM, Robert Dailey
IDE: Visual Studio 9 (MSVC Compiler) Platform: Windows
I have built the boost static libraries by calling the following command line at the boost trunk directory:
*bjam --toolset=msvc link=static debug stage*
This successfully builds all of the libboost_*.lib header files. However, when I build my application (that uses boost), it spits out the following linker error: *LINK : fatal error LNK1104: cannot open file 'boost_python-vc90-mt-gd-1_35.lib'*
Note that I do not define BOOST_ALL_DYN_LINK or any other boost-related preprocessor directive. Any reason why boost is looking for a dynamic library for Boost.Python instead of the static one?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Feb 18, 2008 6:39 PM, chun ping wang
hi you need to define BOOST_ALL_NO_LIB=1 or something like that.
This does not work. It forces me to compile the boost CPP files myself, which I don't want to do. I want boost to look for the static library, like it should be doing. What else can I try?
On Feb 19, 2008 1:16 PM, Robert Dailey
On Feb 18, 2008 6:39 PM, chun ping wang
wrote: hi you need to define BOOST_ALL_NO_LIB=1 or something like that.
This does not work. It forces me to compile the boost CPP files myself, which I don't want to do. I want boost to look for the static library, like it should be doing. What else can I try?
I had to shuffle through the boost source myself to figure this out, but I finally managed to figure out how to make Boost.Python link against a static library. Simply define this preprocessor macro: BOOST_PYTHON_STATIC_LIB
participants (2)
-
chun ping wang
-
Robert Dailey