Hello Steven,
No that file does not exist. I thought I could just link to my normal bzip2
or zlib library I built myself? I tried setting BOOST_ALL_NO_LIB to 1 so it
would not autolink, but now I get these errors on my zlib test program:
1>------ Build started: Project: libz_compression_test, Configuration: Debug
Win32 ------
1>Linking...
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::default_compression"
(?default_compression@zlib@iostreams@boost@@3HB)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::deflated" (?deflated@zlib@iostreams@boost@@3HB)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::default_strategy"
(?default_strategy@zlib@iostreams@boost@@3HB)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected:
__thiscall boost::iostreams::detail::zlib_base::~zlib_base(void)"
(??1zlib_base@detail@iostreams@boost@@IAE@XZ) referenced in function
__unwindfunclet$??0?$zlib_compressor_impl@V?$allocator@D@std@@@detail@iostreams@boost@@QAE@ABUzlib_params@23@@Z$0
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected:
__thiscall boost::iostreams::detail::zlib_base::zlib_base(void)"
(??0zlib_base@detail@iostreams@boost@@IAE@XZ) referenced in function
"public: __thiscall boost::iostreams::detail::zlib_compressor_impl::zlib_compressor_impl
(struct boost::iostreams::zlib_params const &)"
(??0?$zlib_compressor_impl@V?$allocator@D@std@@@detail@iostreams@boost@@QAE@ABUzlib_params@23@@Z)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected: void
__thiscall boost::iostreams::detail::zlib_base::reset(bool,bool)"
(?reset@zlib_base@detail@iostreams@boost@@IAEX_N0@Z) referenced in function
"public: __thiscall boost::iostreams::detail::zlib_compressor_impl::~zlib_compressor_implzlib_test.obj : error LNK2019: unresolved external symbol "private: void
__thiscall boost::iostreams::detail::zlib_base::do_init(struct
boost::iostreams::zlib_params const &,bool,void * (__cdecl*)(void *,unsigned
int,unsigned int),void (__cdecl*)(void *,void *),void *)"
(?do_init@zlib_base@detail@iostreams@boost@@AAEXABUzlib_params@34@_NP6APAXPAXII@ZP6AX22@Z2@Z)
referenced in function "protected: void __thiscall
boost::iostreams::detail::zlib_base::init &)"
(??$init@V?$allocator@D@std@@@zlib_base@detail@iostreams@boost@@IAEXABUzlib_params@23@_NAAU?$zlib_allocator@V?$allocator@D@std@@V12@@123@@Z)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::stream_end" (?stream_end@zlib@iostreams@boost@@3HB)
1>zlib_test.obj : error LNK2019: unresolved external symbol "public: static
void __cdecl boost::iostreams::zlib_error::check(int)"
(?check@zlib_error@iostreams@boost@@SAXH@Z) referenced in function "public:
bool __thiscall boost::iostreams::detail::zlib_compressor_impl::filter(char const * &,char const *,char * &,char
*,bool)"
(?filter@?$zlib_compressor_impl@V?$allocator@D@std@@@detail@iostreams@boost@@QAE_NAAPBDPBDAAPADPAD_N@Z)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected: void
__thiscall boost::iostreams::detail::zlib_base::after(char const * &,char *
&,bool)" (?after@zlib_base@detail@iostreams@boost@@IAEXAAPBDAAPAD_N@Z)
referenced in function "public: bool __thiscall
boost::iostreams::detail::zlib_compressor_implzlib_test.obj : error LNK2019: unresolved external symbol "protected: int
__thiscall boost::iostreams::detail::zlib_base::deflate(int)"
(?deflate@zlib_base@detail@iostreams@boost@@IAEHH@Z) referenced in function
"public: bool __thiscall
boost::iostreams::detail::zlib_compressor_implzlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::no_flush" (?no_flush@zlib@iostreams@boost@@3HB)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::finish" (?finish@zlib@iostreams@boost@@3HB)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected: void
__thiscall boost::iostreams::detail::zlib_base::before(char const * &,char
const *,char * &,char *)"
(?before@zlib_base@detail@iostreams@boost@@IAEXAAPBDPBDAAPADPAD@Z)
referenced in function "public: bool __thiscall
boost::iostreams::detail::zlib_compressor_implzlib_test.obj : error LNK2019: unresolved external symbol "protected: int
__thiscall boost::iostreams::detail::zlib_base::inflate(int)"
(?inflate@zlib_base@detail@iostreams@boost@@IAEHH@Z) referenced in function
"public: bool __thiscall
boost::iostreams::detail::zlib_decompressor_implzlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::sync_flush" (?sync_flush@zlib@iostreams@boost@@3HB)
1>D:\Debug\libz_compression_test.exe : fatal error LNK1120: 16 unresolved
externals
1>Build log was saved at
"file://d:\\compression\libz_compression_test\Debug\BuildLog.htm"
1>libz_compression_test - 17 error(s), 0 warning(s)
Steven Watanabe-4 wrote:
AMDG
ChristinaDRS wrote:
I have the following code simple code to compress/uncompress a string:
<snip>
but I get the following linking error:
1>------ Build started: Project: bzip2_compression_test, Configuration:
Debug Win32 ------
1>Compiling...
1>bzip2_test.cpp
1>Linking...
1>LINK : fatal error LNK1104: cannot open file
'libboost_bzip2-vc90-mt-gd-1_39.lib'
1>Build log was saved at
"file://d:\compression\BoostCompression2\Debug\BuildLog.htm"
1>bzip2_compression_test - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
<snip>
Any ideas how I can fix this?
Does the file libboost_bzip2-vc90-mt-gd-1_39.lib exist?
Have you set the library path in the IDE?
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
--
View this message in context: http://www.nabble.com/need-help-using-boost-bzip2-filter-on-Windows-%28or-zl...
Sent from the Boost - Users mailing list archive at Nabble.com.