Hi,
with the following test program:
<code>
#include
int main(int argc, char* argv[])
{
return 0;
}
</code>
I get the linker error (MSVC 7.1):
LINK : fatal error LNK1104: cannot open file 'libboost_bzip2-vc71-mt-1_33.lib'
A similar error occurs with "zlib.hpp" instead of "bzip2.hpp":
LINK : fatal error LNK1104: cannot open file 'libboost_zlib-vc71-mt-1_33.lib'
I did not find this lib files in my Boost library directory, so I might
have missed something when I built Boost.
This is what I did:
- Got the sources for the bzip2 and the zlib libraries
- Built the libs
- Built Boost with this command line:
bjam "-sTOOLS=vc-7_1" "-sNO_COMPRESSION=0" "-sNO_ZLIB=0"
"-sZLIB_LIBPATH=c:/dev/Libraries/zlib/lib"
"-sZLIB_INCLUDE=c:/dev/Libraries/zlib/include/zlib"
"-sNO_BZIP2=0"
"-sBZIP2_LIBPATH=c:/dev/Libraries/bzip2/lib"
"-sBZIP2_INCLUDE=c:/dev/Libraries/bzip2/include/bzip2"
(without the line breaks of course)
The names of the bzip2 / zlib libraries are libbz2.lib and
zdll.lib, resp., and the paths are correct. I did not get any error messages
when building Boost, and I also did not get the "Building Boost.Iostream with
.. support disabled..." message.
Is there anything that I missed from the docs?
Best regards,
Klaus