[Insight-developers] VXLNumerics (vnl)
Bill Hoffman
bill.hoffman@kitware.com
Fri, 14 Feb 2003 14:52:34 -0500
Have you verified that this problem is in the vxl repositoy?
I don't see what WinMain has to do with anything? What
options are you passing to gcc via the CXXFLAGS?
None of the config tests in that configure script have
or should need a WinMain. How did you determine that
was the problem?
-Bill
At 01:41 PM 2/14/2003 -0600, Kent Williams wrote:
>On Friday 14 February 2003 01:15 pm, Bill Hoffman wrote:
>> Hi,
>>
>> I am working on upgrading the vnl to the most recent vxl repository.
>> It has been almost a year since the last upgrade.
>
>Bill, there's a problem with building VXL with Cygwin that needs
>probably be resolved both in Insight and in the VXL distribution
>itself.
>
>Summary: The configure script erroneously sets the
>VCL_NEEDS_INLINE_INSTANTIATION preprocessor symbol to
>1, when it should be zero for pretty much any version of GCC.
>
>I tracked this down to the vcl configure script. It uses a conftest.C program
>that will fail (in a perfect world) at link time if a compiler requires inline
>instantiation of templated functions, in other words
>
>template <class T> inline int test(T const *x) { return 0; }
>
>requires a declaration, e.g.
>
>int test<char>(char const *x);
>
>In order to force the compiler generate the code.
>
>The problem is the conftest for this feature fails because of WinMain being
>undefined, which would seem to me to have nothing to do with
>VCL_NEEDS_INLINE_INSTATIATION
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers