Dear all,
I have tried several hours to link to a mingw built boost_iostreams
under windows without success. Out of desperation, I turned to linux
where I have a boost/cvs installed. Using a very simple test program:
#include
g++ -I/usr/include/boost-1_35 -lboost_iostreams-gcc34-d test.cpp would success and run fine, but g++ -I/usr/include/boost-1_35 -static -lboost__iostreams-gcc34-d test.cpp will generate a bunch of undefined references like:
/tmp/cc2T22tx.o(.text+0x1af): In function `main':
: undefined reference to `boost::iostreams::zlib::default_strategy'
/tmp/cc2T22tx.o(.text+0x1c0): In function `main':
: undefined reference to `boost::iostreams::zlib::deflated'
/tmp/cc2T22tx.o(.text+0x1c6): In function `main':
: undefined reference to `boost::iostreams::zlib::default_compression'
/tmp/cc2T22tx.o(.gnu.linkonce.t._ZN5boost9iostreams21basic_gzip_compressorISaIcEEC1ERKNS0_11gzip_paramsEi+0x1e8):
In function `boost::iostreams::basic_gzip_compressor ::basic_gzip_compressor(boost::iostreams::gzip_params const&, int)': Can anyone guess what is going on?
Bo