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

Charl P. Botha c . p . botha at ewi . tudelft . nl
Sun, 14 Dec 2003 20:59:07 +0100


Charl P. Botha wrote:
> 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

Oops, my bad.  The build that went wrong was an out-of-source build.  In 
both cases, I'd previously executed cmake in the source direcory by 
mistake.  Before OS upgrades, this never caused problems.  With the new 
OS and new compilers, the config headers in the source and out-of-source 
directories obviously differ and cause havoc.

In short: when building out of source, make sure your source dir is 
PRISTINE.

Thanks,
Charl

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