Boost logo

Boost Users :

Subject: [Boost-users] bz2 & gzip support - ld can't find symboles
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-06-09 09:06:34


Hi,

I try to use the bz2 and gzip iostreams from Boost 1.43 on my OSX Snow Leopard. The code is compiled without any errors, but the ld returns:

Undefined symbols:
 "boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)", referenced from:
     boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >::zlib_compressor_impl(boost::iostreams::zlib_params const&)in ncd.o
[...]

I had setup the -l G++ option to "z" and "bz2" but I can't link my code. I had compiled the Boost from sources with bjam -sHAVE_ICU=1 -sZLIB_BINARY -sBZIP2_BINARY --with-mpi toolset=darwin install --prefix=
Binaries for the zip algorithms are under /usr/lib
After compiling with bjam I get 4 libs: libbost_mpi.dylib, libbost_serialization.dylib and both as *.a files.

Do I have forget anything on compile / link option?
I had found an articel for Windows in which bjam should create some boost zip libraries.
I try the example on http://www.boost.org/doc/libs/1_43_0/libs/iostreams/doc/classes/zlib.html#installation
but it run into errors.

Thanks for help

Phil


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