[Insight-users] build error vnl_matlab_read.cxx and gcc 3.3

Charl P. Botha c . p . botha at ewi . tudelft . nl
Sat, 13 Dec 2003 15:50:58 +0100


Dear list,

When attempting to build the latest CVS ITK on an up to date Fedora Core 
1 (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) or on Debian 
Woody with gcc 3.3 packages by Adrian Bunk, I get the following build error:

Building object file vnl_matlab_read.o...
/data/home/cpbotha/build/Insight/Utilities/vxl/vnl/vnl_matlab_read.cxx: In
    member function `void vnl_matlab_readhdr::read_next()':
/data/home/cpbotha/build/Insight/Utilities/vxl/vnl/vnl_matlab_read.cxx:111: 
error: `::
    ios' undeclared (first use here)
/data/home/cpbotha/build/Insight/Utilities/vxl/vnl/vnl_matlab_read.cxx:111: 
error: syntax
    error before `::' token
make[7]: *** [vnl_matlab_read.o] Error 1

I tried everything mentioned in a previous Insight-users thread[1] but 
to no avail.  It seems that with all the vcl header indirection and 
preprocessor conditions, ios is not being correctly referred to as 
std::ios in that file.  A manual inspection of the headers didn't turn 
up any obvious problems.

Does anyone have any other tips or advice?

Thanks,
Charl

[1] http://www . itk . org/pipermail/insight-users/2003-September/004968 . html

-- 
charl p. botha http://cpbotha . net/ http://visualisation . tudelft . nl/