|
Boost Users : |
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
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