[Insight-users] compiling ITK with gcc 3.2?

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


Hi Mathieu (and others),

sorry to say it still does not work, I get the same error (non-template
used as template)

I also tried adding '#include <cstdio>' in
Code/Numerics/vxl/vnl/vnl_matrix.txx, where the definition
#define VNL_MATRIX_INSTANTIATE(T) \
is, but that did not help either (this was just guesswork).

[hajaalin@gene Build]$ echo $CC; echo $CXX
/usr/bin/gcc
/usr/bin/gcc
[hajaalin@gene Build]$ gcc --version
gcc (GCC) 3.2 (Mandrake Linux 9.0 3.2-2mdk)

Thanks,

Harri


On Tue, 15 Oct 2002, Mathieu Malaterre wrote:

> Hi Harri (again),
>   Could you try adding:
> #include <cstdio>
> in
> Insight/Code/Numerics/vxl/vnl/Templates/vnl_matrix+double-.cxx
>
> or else try adding -Wno-deprecated in CMAKE_CXX_FLAGS (in your
> CMakeCache.txt file).
>
> and tell me if it works ?
>
> thanks
>
> ref:
> http://www.geocrawler.com/archives/3/216/2001/4/150/5671325/
>
> mathieu
>
> Harri Tapio Jaalinoja wrote:
>
> >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_m=
atrix+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 `struc=
t
> >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
> >
> >
> >
> >_______________________________________________
> >Insight-users mailing list
> >Insight-users@public.kitware.com
> >http://public.kitware.com/mailman/listinfo/insight-users
> >
> >
> >
> >
>
>
> --
> Le superflu n'est inutile qu'=E0 ceux qui pensent que le n=E9cessaire est=
 suffisant (P. Desproges)
>
> Mathieu Malaterre
> 170 chemin des minimes
> 01600 PARCIEUX
> http://mathieu.malaterre.com
>
>
>