[Insight-users] Re: ITK Compilation Error

Luis Ibanez luis.ibanez at kitware.com
Fri Sep 24 17:46:08 EDT 2004


Hi Andy,

ITK is not ready for gcc 3.4 yet.

There is a number of significant changes in the rules
that GCC 3.4 impose for classes deriving from other
templated classes.

There is an effort of adaptation in progress but it will
take several weeks/months before it is in a stable state.

I will strongly suggest you to use gcc 3.3 or gcc 3.2
in the meantime.

Please let us know if you have any further questions.


    Thanks


      Luis


---------------
Andy Eow wrote:

> Hi Luis,
>  
> I'm having some problems compiling ITK 1.8.1 ... using CMake 2.0.3 
> & gcc-3.4.2. I've tried other cmake & gcc versions but keep getting the 
> same error as below. Pls advice. Thanks!
>  
> Cheers,
> Andy
>  
>  
> Building object file DICOMSource.o...
> Building object file DICOMBuffer.o...
> Building object file DICOMFile.o...
> In file included from 
> /scratch/InsightToolkit-1.8.1/Utilities/DICOMParser/DICOMFile.cxx:29:
> /scratch/InsightToolkit-1.8.1/Utilities/DICOMParser/DICOMFile.h:51: 
> error: parse
>    error before `&' token
> /scratch/InsightToolkit-1.8.1/Utilities/DICOMParser/DICOMFile.cxx:61: 
> error: parse
>    error before `&' token
> /scratch/InsightToolkit-1.8.1/Utilities/DICOMParser/DICOMFile.cxx: In member
>    function `bool itkdicomparser::DICOMFile::Open(...)':
> /scratch/InsightToolkit-1.8.1/Utilities/DICOMParser/DICOMFile.cxx:66: 
> error: `
>    filename' undeclared (first use this function)
> /scratch/InsightToolkit-1.8.1/Utilities/DICOMParser/DICOMFile.cxx:66: 
> error: (Each
>    undeclared identifier is reported only once for each function it appears
>    in.)
> make[5]: *** [DICOMFile.o] Error 1
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_DICOMParser] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Utilities] Error 2
> make: *** [default_target] Error 2







More information about the Insight-users mailing list