[Insight-users] compiling ITK under cygwin (gcc 3.3.3)...

Jean-Philippe Guyon jguyon at ils-inc.com
Mon Dec 20 15:20:26 EST 2004


Hello,

I keep getting the following error when compiling ITK under cygwin.

/usr/local/src/Insight/Code/IO/itkVTKImageIO.cxx: In member function `bool
   itk::VTKImageIO::OpenVTKFileForReading(std::ifstream&, const char*)':
/usr/local/src/Insight/Code/IO/itkVTKImageIO.cxx:68: error: invalid
conversion
   from `const int' to `std::_Ios_Openmode'
/usr/local/src/Insight/Code/IO/itkVTKImageIO.cxx:68: error:   initializing
   argument 2 of `void std::basic_ifstream<_CharT, _Traits>::open(const
char*,
   std::_Ios_Openmode) [with _CharT = char, _Traits =
std::char_traits<char>]'
/usr/local/src/Insight/Code/IO/itkVTKImageIO.cxx: In member function `bool
   itk::VTKImageIO::OpenVTKFileForWriting(std::ofstream&, const char*)':
/usr/local/src/Insight/Code/IO/itkVTKImageIO.cxx:110: error: invalid
conversion
   from `const int' to `std::_Ios_Openmode'
/usr/local/src/Insight/Code/IO/itkVTKImageIO.cxx:110: error:   initializing
   argument 2 of `void std::basic_ofstream<_CharT, _Traits>::open(const
char*,
   std::_Ios_Openmode) [with _CharT = char, _Traits =
std::char_traits<char>]'
make[5]: *** [itkVTKImageIO.o] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_IO] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Code] Error 2
make: *** [default_target] Error 2

I use gcc 3.3.3 and updated my cvs repository a few days ago, and again
earlier this morning.

Any help would be appreciated.

Happy Holidays,

Jean-Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20041220/a0a1c885/attachment.htm


More information about the Insight-users mailing list