21 Aug
2009
21 Aug
'09
1:30 p.m.
Grzegorz Slodkowicz wrote:
Hi,
I can't seem to get file_descriptor* family of classes to work.
[snip]
Here's what happens when I try to compile (under Mac OS X):
erato:bioinf jergosh$ g++ -I/usr/local/boost_1_39_0 -o fdboost fdboost.cpp Undefined symbols: "boost::iostreams::file_descriptor::file_descriptor(int, bool)", referenced from:
[snip]
ld: symbol(s) not found collect2: ld returned 1 exit status
What am I missing here?
A part of the implementation of the file_descriptors is not header-only, see libs/iostreams/src/file_descriptor.cpp. You thus have to build the iostreams lib and link it.