|
Boost : |
From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2007-02-19 07:42:24
Hi Simon,
On Mon, 19 Feb 2007 14:51:38 +0300, "Simon Atanasyan"
<atanasyan_at_[hidden]> said:
> Is "buffered_read_stream.cpp" included in the Boost 1.33.1
> distributive? Could you please provide a full path to it?.
Actually Gaurav is referring to a file included in the Boost.Asio
package from here:
http://sourceforge.net/project/showfiles.php?group_id=122478
where the package has been extracted over the top of a boost 1.33.1
distro.
> > $CC -I$HOME/1.33.1/64/include/ -D_XOPEN_SOURCE=500
> > -D__EXTENSIONS__ -library=stlport4 -features=tmplife
> > -features=tmplrefstatic buffered_
> > read_stream.cpp -lnsl -lsocket -lxnet
> > Undefined first referenced
> > symbol in file
> > std::string boost::system::error_code::message()const
> > buffered_read_stream.o
> > boost::system::error_category
> > boost::system::error_code::new_category(int(*)(const boo
> > st::system::error_code&),std::string (*)(const
> > boost::system::error_code&),std::wstrin
> > g (*)(const boost::system::error_code&)) buffered_read_stream.o
> > ld: fatal: Symbol referencing errors. No output written to a.out
I gather from Gaurav's later messages that he worked this problem out.
It seems to be simply a linker error due to not linking against the
boost.system library.
Cheers,
Chris
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk