$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Bo Peng (ben.bob_at_[hidden])
Date: 2006-12-20 14:27:21
> Boost.Iostreams needs extern zlib, bzip2, etc, just as the message show
> you.
The error message would be the same if I add them. The actual problem
is linking order. Namely,
$ g++ -static -lboost_iostreams -lz -lbz2 test.cpp
fails, and
$ g++ -static test.cpp -lboost_iostreams -lz -lbz2
succeeds. Why did
$ g++ -shared -lboost_iostream -lz -lbz2 test.cpp
succeed is beyond me.
Anyway, linking under mingw still fails.
Cheers,
Bo