[Insight-users] Problem compiling itk with gcc 4.3.0

Olivier Rousseau itkoli at gmail.com
Wed Jun 18 10:48:26 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080618/fdc46389/attachment.htm>


More information about the Insight-users mailing list