[Insight-users] Problem compiling itk with gcc 4.3.0
Luis Ibanez
luis.ibanez at kitware.com
Wed Jun 18 11:46:17 EDT 2008
Hi Olivier,
ITK 3.6 will not build with GCC 4.3.
Please use the current CVS version of ITK.
Support for GCC 4.3 has been added just about three weeks ago.
Regards,
Luis
------------------------
Olivier Rousseau wrote:
> Hi,
>
> I am having problem compiling itk on a new machine running Fedora 9 with
> gcc 4.3.0
> It configures well with 2.4.8, but during compilation, it throws this error:
>
> /src/InsightToolkit-3.6.0/Utilities/DICOMParser/DICOMSource.cxx: In copy
> constructor 'itkdicomparser::DICOMSource::DICOMSource(const
> itkdicomparser::DICOMSource&)':
> ésrc/InsightToolkit-3.6.0/Utilities/DICOMParser/DICOMSource.cxx:62:
> error: 'strcmp' was not declared in this scope
> /src/InsightToolkit-3.6.0/Utilities/DICOMParser/DICOMSource.cxx: In
> member function 'void itkdicomparser::DICOMSource::operator=(const
> itkdicomparser::DICOMSource&)':
> /src/InsightToolkit-3.6.0/Utilities/DICOMParser/DICOMSource.cxx:74:
> error: 'strcmp' was not declared in this scope
> make[2]: ***
> [Utilities/DICOMParser/CMakeFiles/ITKDICOMParser.dir/DICOMSource.o] Error 1
> make[1]: *** [Utilities/DICOMParser/CMakeFiles/ITKDICOMParser.dir/all]
> Error 2
> make: *** [all] Error 2
>
> For some reason, changing
> #include <string>
> to
> #include <string.h>
> in the file "InsightToolkit-3.6.0/Utilities/DICOMParser/DICOMSource.cxx"
> solves the problem for this file,
> but then it will do the same thing for the next ones.
>
> Could it be a gcc 4.3.0 issue?
> Or a path problem on my machine?
>
> Thanks!
>
> Olivier
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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