[Insight-users] compiling ITK with gcc 3.2?

Koen Van Leemput koen.vanleemput@hus.fi
Wed, 16 Oct 2002 09:04:04 +0300


On Tuesday 15 October 2002 13:51, Harri Tapio Jaalinoja wrote:
>
> 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_=
matr
>ix+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
>
>


Hi,=20

When I switched to gcc3 on my Linux box recently, I got exactly the same=20
problem. Manually changing the line=20
  #define VCL_NEEDS_INLINE_INSTANTIATION 1
to=20
  #define VCL_NEEDS_INLINE_INSTANTIATION 0
in the automatically generated file=20
Insight-build/Code/Numerics/vxl/vcl/vcl_config_compiler.h solved the prob=
lem=20
for me.

Maybe this will help figuring out what exactly is going on.

Koen