Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::iostreams::device::file_descriptor* notimplemented?
From: Eric MALENFANT (Eric.Malenfant_at_[hidden])
Date: 2009-08-21 09:30:02


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.


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