[Insight-users] compiling ITK with gcc 3.2?

Harri Tapio Jaalinoja harri.jaalinoja@helsinki.fi
Tue, 15 Oct 2002 13:51:36 +0300 (EET DST)


Hi,

have you succeeded in compiling ITK with gcc 3.2?
I tried both the CVS version and beta2. They both fail,
with different errors.

Any ideas what I could do to make this work?

Thanks,
Harri

----

My setup:
[hajaalin@gene Build]$  gcc --version
gcc (GCC) 3.2 (Mandrake Linux 9.0 3.2-2mdk)

CVS version compilation fails:
/home/hajaalin/Insight_CVS/Insight/Code/Numerics/vxl/vnl/Templates/vnl_matrix+double-.cxx:2:
non-template used as template
gmake[7]: *** [vnl/Templates/vnl_matrix+double-.o] Error 1
gmake[6]: *** [default_target] Error 2
gmake[5]: *** [default_target_vxl] Error 2
gmake[4]: *** [default_target] Error 2
gmake[3]: *** [default_target_Numerics] Error 2
gmake[2]: *** [default_target] Error 2
gmake[1]: *** [default_target_Code] Error 2
gmake: *** [default_target] Error 2

Beta 2 compilation fails:
In file included from /usr/local/Insight/Code/Common/itk_hash_map.h:57,
                 from
/usr/local/Insight/Testing/Code/Common/itkCommonHeaderTest.cxx:247:
/usr/local/Insight/Code/Common/itk_hashtable.h: At global scope:
/usr/local/Insight/Code/Common/itk_hashtable.h:163: parse error before `>'
token
/usr/local/Insight/Code/Common/itk_hashtable.h:174: definition of `struct
itk::hashtable_iterator' inside template parameter list
/usr/local/Insight/Code/Common/itk_hashtable.h:176: ISO C++ forbids
declaration of `hashtable' with no type
/usr/local/Insight/Code/Common/itk_hashtable.h:176: template-id
`hashtable<Value, Key, HashFcn, ExtractKey, EqualKey, Alloc>' used as a
declarator
/usr/local/Insight/Code/Common/itk_hashtable.h:176: confused by earlier
errors, bailing out
make[7]: *** [itkCommonHeaderTest.o] Error 1
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_Common] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Code] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Testing] Error 2
make: *** [default_target] Error 2