23 Aug
2007
23 Aug
'07
1:33 a.m.
Peter Leopold wrote:
Dear Boost Users,
I started with kubuntu-feisty's boost 1.33.1. but was unable to execute the first main in the iostreams tutorial Overview (2.1.1). The showstopper was the compiler error
not defined in scope. % g++ test.cpp test.cpp: In functin 'int main()': test.cpp::9: error: 'file_sink' was not declared in this scope . . . several more errors.
try changing the offending line to: io::stream_bufferio::file_sink buf("log.txt"); In other words, its a documentation bug... the file_sink is in the boost::iostreams namespace as well.