[Insight-users] Compile ITK1.4 vnl error with gcc-3.3.1/3.0.2

Feng Ma mafeng at hotmail . com
Mon, 22 Sep 2003 22:38:25 -0400


Hi,

  I am compiling ITK1.4 using gcc-3.3.1 which I compiled and installed on 
/usr/local/. I got the following error:

  Building object file vnl_matlab_write.o...
  Building object file vnl_matlab_read.o...
   /space2/Devel/InsightToolkit-1.4.0/Utilities/vxl/vnl/vnl_matlab_read.cxx: 
In
     member function `void vnl_matlab_readhdr::read_next()':
   
/space2/Devel/InsightToolkit-1.4.0/Utilities/vxl/vnl/vnl_matlab_read.cxx:111: 
error: `::
     ios' undeclared (first use here)
   
/space2/Devel/InsightToolkit-1.4.0/Utilities/vxl/vnl/vnl_matlab_read.cxx:111: 
error: parse
     error before `::' token
   make[1]: *** [vnl_matlab_read.o] Error 1
   make: *** [default_target] Error 2

  My OS is Redhat 7.2 with gcc-2.96. I have no problems with system 
gcc-2.96. I also tried gcc-3.0.2 which was compiled and installed by our 
system administrator. I got the same error above.

  I have a function template written on ITK libraries. gcc-2.96 messed up 
the type of the second and third template parameters. So I am in searching 
for a newer compiler. But I have no lucks with gcc-3.x so far.

  I will try another machine with system-installed gcc-3.x to see what 
happend. Thanks.

-Feng

_________________________________________________________________
Share your photos without swamping your Inbox.  Get Hotmail Extra Storage 
today! http://join . msn . com/?PAGE=features/es