I am trying Avro in C++
When I include DataFileWriter. (as follows)
DataFileWriter<avrocurve::curve> dfw("curve.bin", curveschema);
I get the following errors (truncated):
//usr/local/lib/libavrocpp_s.a(DataFile.cc.o): In function
`avro::DataFileWriterBase::sync()':
DataFile.cc<http://DataFile.cc>:(.text+0x31da): undefined reference to
`boost::iostreams::zlib::default_compression'
DataFile.cc<http://DataFile.cc>:(.text+0x31f3): undefined reference to
`boost::iostreams::zlib::deflated'
DataFile.cc<http://DataFile.cc>:(.text+0x320c): undefined reference to
`boost::iostreams::zlib::default_strategy'
DataFile.cc<http://DataFile.cc>:(.text+0x3220): undefined reference to
`boost::iostreams::detail::zlib_base::zlib_base()'
DataFile.cc<http://DataFile.cc>:(.text+0x323d): undefined reference to
`boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params
const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*,
void*), void*)'
Boost was built after I build zlib
zlib.a is in /usr/local/lib (Ubuntu 18)
libboost_iostreams.a (and other boost ".a" libraries) are also in /usr/local/lib
I know my CMake will pick this up as my ld.so.conf is configured for
/usr/local/lib
There. is almost no known replies to this on Stackoverflow
I have wasted over three days in this and am on the verge to switching back to
Protobuf's
Any help would be much appreciated as I would hate to abandon avro
Regards
-RS