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

Julien Jomier jjomier at cs.unc.edu
Tue Dec 21 06:04:35 EST 2004


Hi Jean-Philippe,

I just put a fix in the cvs repository. ITK is now compiling using
Cygwin (gcc 3.3).

Thanks a lot for the report,

Julien

Jean-Philippe Guyon wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list