Boost logo

Boost Users :

Subject: Re: [Boost-users] need help using boost bzip2 filter on Windows (or zlib filter)
From: ChristinaDRS (mail_at_[hidden])
Date: 2009-10-22 08:37:04


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_at_zlib@iostreams_at_boost@@3HB)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::deflated" (?deflated_at_zlib@iostreams_at_boost@@3HB)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::default_strategy"
(?default_strategy_at_zlib@iostreams_at_boost@@3HB)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected:
__thiscall boost::iostreams::detail::zlib_base::~zlib_base(void)"
(??1zlib_base_at_detail@iostreams_at_boost@@IAE_at_XZ) referenced in function
__unwindfunclet$??0?$zlib_compressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_at_ABUzlib_params_at_23@@Z$0
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected:
__thiscall boost::iostreams::detail::zlib_base::zlib_base(void)"
(??0zlib_base_at_detail@iostreams_at_boost@@IAE_at_XZ) referenced in function
"public: __thiscall boost::iostreams::detail::zlib_compressor_impl<class
std::allocator<char> >::zlib_compressor_impl<class std::allocator<char>
>(struct boost::iostreams::zlib_params const &)"
(??0?$zlib_compressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_at_ABUzlib_params_at_23@@Z)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected: void
__thiscall boost::iostreams::detail::zlib_base::reset(bool,bool)"
(?reset_at_zlib_base_at_detail@iostreams_at_boost@@IAEX_N0_at_Z) referenced in function
"public: __thiscall boost::iostreams::detail::zlib_compressor_impl<class
std::allocator<char> >::~zlib_compressor_impl<class std::allocator<char>
>(void)"
(??1?$zlib_compressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_at_XZ)
1>zlib_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_at_zlib_base_at_detail@iostreams_at_boost@@AAEXABUzlib_params_at_34@_NP6APAXPAXII_at_ZP6AX22@Z2_at_Z)
referenced in function "protected: void __thiscall
boost::iostreams::detail::zlib_base::init<class std::allocator<char>
>(struct boost::iostreams::zlib_params const &,bool,struct
boost::iostreams::detail::zlib_allocator<class std::allocator<char>,class
std::allocator<char> > &)"
(??$init_at_V?$allocator_at_D@std@@@zlib_base_at_detail@iostreams_at_boost@@IAEXABUzlib_params_at_23@_NAAU?$zlib_allocator_at_V?$allocator_at_D@std@@V12@@123@@Z)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::stream_end" (?stream_end_at_zlib@iostreams_at_boost@@3HB)
1>zlib_test.obj : error LNK2019: unresolved external symbol "public: static
void __cdecl boost::iostreams::zlib_error::check(int)"
(?check_at_zlib_error_at_iostreams@boost@@SAXH_at_Z) referenced in function "public:
bool __thiscall boost::iostreams::detail::zlib_compressor_impl<class
std::allocator<char> >::filter(char const * &,char const *,char * &,char
*,bool)"
(?filter@?$zlib_compressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_NAAPBDPBDAAPADPAD_N_at_Z)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected: void
__thiscall boost::iostreams::detail::zlib_base::after(char const * &,char *
&,bool)" (?after_at_zlib_base_at_detail@iostreams_at_boost@@IAEXAAPBDAAPAD_N_at_Z)
referenced in function "public: bool __thiscall
boost::iostreams::detail::zlib_compressor_impl<class std::allocator<char>
>::filter(char const * &,char const *,char * &,char *,bool)"
(?filter@?$zlib_compressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_NAAPBDPBDAAPADPAD_N_at_Z)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected: int
__thiscall boost::iostreams::detail::zlib_base::deflate(int)"
(?deflate_at_zlib_base_at_detail@iostreams_at_boost@@IAEHH_at_Z) referenced in function
"public: bool __thiscall
boost::iostreams::detail::zlib_compressor_impl<class std::allocator<char>
>::filter(char const * &,char const *,char * &,char *,bool)"
(?filter@?$zlib_compressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_NAAPBDPBDAAPADPAD_N_at_Z)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::no_flush" (?no_flush_at_zlib@iostreams_at_boost@@3HB)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::finish" (?finish_at_zlib@iostreams_at_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_at_zlib_base_at_detail@iostreams_at_boost@@IAEXAAPBDPBDAAPADPAD_at_Z)
referenced in function "public: bool __thiscall
boost::iostreams::detail::zlib_compressor_impl<class std::allocator<char>
>::filter(char const * &,char const *,char * &,char *,bool)"
(?filter@?$zlib_compressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_NAAPBDPBDAAPADPAD_N_at_Z)
1>zlib_test.obj : error LNK2019: unresolved external symbol "protected: int
__thiscall boost::iostreams::detail::zlib_base::inflate(int)"
(?inflate_at_zlib_base_at_detail@iostreams_at_boost@@IAEHH_at_Z) referenced in function
"public: bool __thiscall
boost::iostreams::detail::zlib_decompressor_impl<class std::allocator<char>
>::filter(char const * &,char const *,char * &,char *,bool)"
(?filter@?$zlib_decompressor_impl_at_V?$allocator_at_D@std@@@detail_at_iostreams@boost@@QAE_NAAPBDPBDAAPADPAD_N_at_Z)
1>zlib_test.obj : error LNK2001: unresolved external symbol "int const
boost::iostreams::zlib::sync_flush" (?sync_flush_at_zlib@iostreams_at_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_at_[hidden]
> 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-zlib-filter%29-tp25998463p26009138.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net