[Insight-users] ITK from cvs compiled fine with gcc version 3.3.1 but not with gcc version 3.4.1

Rao Jianguo rao.jianguo at hgu.mrc.ac.uk
Mon Dec 20 04:10:55 EST 2004


Dear all,

I have problems for compiling itk from cvs using gcc version 3.4.1 
(Mandrakelinux 10.1 3.4.1-4mdk)
and ccmake 2.0.5.  I am wondering if anybody can help.



Everything is fine until when it goes to

c++ -o itkAmoebaOptimizer.o -DITKNumerics_EXPORTs  ...



, Igot the following error message:

/export/data0/home/ITK/Insight/Code/Common/itkEventObject.h: In member 
function `virtual void itk::AmoebaOptimizer::StartOptimization()':
/export/data0/home/ITK/Insight/Code/Common/itkEventObject.h:141: error: 
`itk::StartEvent::StartEvent(const itk::StartEvent&)' is private
/export/data0/home/ITK/Insight/Code/Numerics/itkAmoebaOptimizer.cxx:188: 
error: within this context
/export/data0/home/ITK/Insight/Code/Common/itkEventObject.h:142: error: 
`itk::EndEvent::EndEvent(const itk::EndEvent&)' is private
/export/data0/home/ITK/Insight/Code/Numerics/itkAmoebaOptimizer.cxx:226: 
error: within this context


If I change the member function in itkEventObject.h

classname(const Self&);

from private to public

I can pass this part but latter it produce other errors.



=====================

When I use  gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
with ccmake  2.0.5
It works fine.

Many thanks,

Jianguo






More information about the Insight-users mailing list