[Insight-users] pb compiling on linux mdk 10 cooker
Luis Ibanez
luis.ibanez at kitware.com
Mon Jun 7 22:38:56 EDT 2004
Hi Yann,
Thanks a lot for posting the error messages that
you got whem attempting to compile ITK with GCC 3.4.
This shows that it is time to setup a dashboard
with this compiler.
Could you please try the two following experiments:
In Insight/Code/Commong/itkNumericTraits.txx
attempt to change line 61 from:
static T NonpositiveMin() { return min(); }
TO
A) static T NonpositiveMin() { return this->min(); }
OR
B) static T NonpositiveMin() {
return this->vcl_numeric_traits<T>::min(); }
and let us know if any one of these two expression pass the
compilation.
If this line pass, you probably will get new errors from
subsequent lines. That's ok. At least we will know what
will be the basic approach to follow.
Please let us know what you find.
Thanks
Luis
-------------------
Yann GAVET wrote:
> here is the error message (same pb with the CVS and the 1.6 version):
>
> c++ -o fltkDisplayGlWindowGUI.o -w -ftemplate-depth-50
> -Wno-deprecated -I/usr/X11R6/include
> -I/home/yann/Documents/download/InsightApplications/Auxiliary/FltkImageViewer
> -I/usr/local/include/InsightToolkit
> -I/usr/local/include/InsightToolkit/Algorithms
> -I/usr/local/include/InsightToolkit/BasicFilters
> -I/usr/local/include/InsightToolkit/Common
> -I/usr/local/include/InsightToolkit/Numerics
> -I/usr/local/include/InsightToolkit/IO
> -I/usr/local/include/InsightToolkit/Numerics/FEM
> -I/usr/local/include/InsightToolkit/Numerics/Statistics
> -I/usr/local/include/InsightToolkit/SpatialObject
> -I/usr/local/include/InsightToolkit/Utilities/MetaIO
> -I/usr/local/include/InsightToolkit/Utilities/DICOMParser
> -I/usr/local/include/InsightToolkit/Utilities
> -I/usr/local/include/InsightToolkit/Utilities/vxl/vcl
> -I/usr/local/include/InsightToolkit/Utilities/vxl/core
> -I/usr/local/include/vtk -I/usr/share/doc/NVIDIA_GLX-1.0/include
> -I/usr/local/include
> -I/home/yann/Documents/download/InsightApplications/Auxiliary/FltkImageViewer
> -c
> /home/yann/Documents/download/InsightApplications/Auxiliary/FltkImageViewer/fltkDisplayGlWindowGUI.cxx
>
> In file included from
> /usr/local/include/InsightToolkit/Common/itkVector.txx:21,
> from
> /usr/local/include/InsightToolkit/Common/itkVector.h:196,
> from
> /usr/local/include/InsightToolkit/Common/itkPoint.h:20,
> from
> /home/yann/Documents/download/InsightApplications/Auxiliary/FltkImageViewer/fltkGlWindowInteractive.h:22,
>
> from
> /home/yann/Documents/download/InsightApplications/Auxiliary/FltkImageViewer/fltkDisplayGlWindowGUI.h:7,
>
> from
> /home/yann/Documents/download/InsightApplications/Auxiliary/FltkImageViewer/fltkDisplayGlWindowGUI.cxx:3:
>
> /usr/local/include/InsightToolkit/Common/itkNumericTraits.h: In static
> member function `static T itk::NumericTraits<T>::NonpositiveMin()':
> /usr/local/include/InsightToolkit/Common/itkNumericTraits.h:61: error:
> there are no arguments to `min' that depend on a template parameter, so
> a declaration of `min' must be available
> /usr/local/include/InsightToolkit/Common/itkNumericTraits.h:61: error:
> (if you use `-fpermissive', G++ will accept your code, but allowing the
> use of an undeclared name is deprecated)
>
>
> Yann GAVET wrote:
>
>> It happened after upgrading gcc to:
>> c++ (GCC) 3.4.1 (Mandrake Linux (Cooker) 3.4.1-0.1mdk)
>>
>> Can anyone confirm ? Any idea ?
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list