[Insight-developers] Once more with feeling: GCC 3, Implicit Template Instantion Issues

William A. Hoffman bill.hoffman@kitware.com
Thu, 13 Mar 2003 18:56:21 -0500


Can you send the config log files?
It is not the same error, but looks like a new one that came from
the recent vnl upgrade.

-Bill


At 04:46 PM 3/13/2003 -0600, Kent Williams wrote:
>Here's the compiler:
>% gcc -dumpmachine
>i686-pc-linux-gnu
>% gcc --version
>gcc (GCC) 3.2.2
>Copyright (C) 2002 Free Software Foundation, Inc.
>This is free software; see the source for copying conditions.  There is NO
>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>This is my build of the lastest gcc3, which I need to double check for 
>compile
>errors before checkin -- the default on my box is 2.96 ...
>
>During the VXL configure, it says
>
>checking whether the C++ compiler instantiates templates implicitly... no
>Warning: turning off implicit template instantiation
>
>Which in turn turns ON some stuff in the vnl template library, that Gcc3
>doesn't like:
>
>Building object file Templates/vnl_matrix+double-.o...
>/home/scratch/kent/work/build/Remote_CVS/Insight/Utilities/vxl/vnl/Templates/vnl_matrix+double-.cxx:2: 
>
>non-template
>    used as template
>
>The problem is that GCC3 doesn't need explicit instantiation of the template
>functions, yet the configure script test for this fails.
>
>We ran into this on Cygwin around the time of the developer's conference in
>Philadelphia, and until this latest re-configuration of VXL gcc3 wasn't a
>problem.  Have I done something wrong, or did the configuration problems
>creep back in?
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers