20 Dec
2006
20 Dec
'06
7:27 p.m.
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