[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 10:25:55 EST 2004


Hi Julien,

I got the same error. No lucky for gcc 3.4.

Thanks again,

Jianguo

Julien Jomier wrote:

> Hi Rao,
>
> ITK is not compatible with gcc 3.4 yet. Please use gcc 3.3 or you can 
> add the -permissive flag to the compiler flags and that should do it 
> (hopefully). Otherwise, Bill is in the process of updating ITK to 
> compile with gcc 3.4, it's a long process, just be patient :)
>
> Hope that helps,
>
> Julien
>
> Rao Jianguo wrote:
>
>> 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
>>
>>
>>
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> 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