Building ocrad-0.14 using gcc-4.1.0 fails with these errors: x86_64-pc-linux-gnu-g++ -march=athlon64 -O2 -pipe -c -o bitmap.o bitmap.cc page_image_layout.cc:34: error: definition of 'void Page_image::find_columns(const Rectangle&, bool)' is not in namespace enclosing 'Page_image' page_image_layout.cc:110: error: definition of 'void Page_image::find_rows(const Rectangle&, bool)' is not in namespace enclosing 'Page_image' make: *** [page_image_layout.o] Error 1 make: *** Waiting for unfinished jobs.... The following patch (found at http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg166371.html) fixes this: --- ocrad-0.14-orig/page_image_layout.cc 2006-01-02 11:31:18.000000000 -0700 +++ ocrad-0.14/page_image_layout.cc 2006-04-11 21:50:48.000000000 -0600 @@ -31,6 +31,8 @@ void find_rows( const Rectangle & rin, bool recursive ) throw(); +} // end namespace + void Page_image::find_columns( const Rectangle & rin, bool recursive ) throw() { if( !this->includes( rin ) ) return; @@ -172,8 +174,6 @@ } } -} // end namespace - // Creates a reduced Page_image //
Fixed in CVS. Thanks for reporting and discovering the patch!