Compiliation here dies in BufferView.C: cxx: Error: box.h, line 45: #349 no operator "<<" matches these operands operand types are: std::ostream << char [8] return o << "x1,y1: " << b.x1 << "," << b.y1 -----------------^ cxx: Error: box.h, line 46: #135 namespace "std" has no member "endl" << " x2,y2: " << b.x2 << "," << b.y2 << std::endl; -------------------------------------------------------------^
Where is the correct place to #include <ostream> ? Note that box.h contians the following inlined function: inline std::ostream & operator<<(std::ostream & o, Box & b) { return o << "x1,y1: " << b.x1 << "," << b.y1 << " x2,y2: " << b.x2 << "," << b.y2 << std::endl; } Does that mean that I should #include "support/LOstream.h" in box.h or in BufferView.C? Angus