[Insight-users] pb compiling on linux mdk 10 cooker

Yann GAVET yann.gavet at univ-st-etienne.fr
Tue Jun 8 02:49:56 EDT 2004


Hi Luis.

Im really sorry, I didnt have much time and uninstalled gcc 3.4 to gcc 
3.3.2.

Anyway, I modified the code with your suggestion, with gcc 3.3.2, and it 
doesnt compile:
-> c++ (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)

the error messages are:

> A)       static T NonpositiveMin() { return this->min(); }
In file included from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkPath.h:25,
                  from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkChainCodePath.h:21,
                  from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkChainCodePath2D.h:21,
                  from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkChainCodePath2D.cxx:17:
/mnt/win_f/Documents/download/Insight/Code/Common/itkNumericTraits.h: In 
static member function `static T itk::NumericTraits<T>::NonpositiveMin()':
/mnt/win_f/Documents/download/Insight/Code/Common/itkNumericTraits.h:61: 
error: `this' is unavailable for static member functions
make[1]: *** [itkChainCodePath2D.o] Erreur 1
make: *** [default_target] Erreur 2

> 
> B)       static T NonpositiveMin() {
>            return this->vcl_numeric_traits<T>::min(); }

In file included from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkPath.h:25,
                  from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkChainCodePath.h:21,
                  from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkChainCodePath2D.h:21,
                  from 
/mnt/win_f/Documents/download/Insight/Code/Common/itkChainCodePath2D.cxx:17:
/mnt/win_f/Documents/download/Insight/Code/Common/itkNumericTraits.h: In 
static member function `static T itk::NumericTraits<T>::NonpositiveMin()':
/mnt/win_f/Documents/download/Insight/Code/Common/itkNumericTraits.h:61: 
error: `this' is unavailable for static member functions
/mnt/win_f/Documents/download/Insight/Code/Common/itkNumericTraits.h:61: 
error: syntax error before `;' token
make[1]: *** [itkChainCodePath2D.o] Erreur 1
make: *** [default_target] Erreur 2

---------
I will try to install gcc 3.4 in a user directory and test it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yann.gavet.vcf
Type: text/x-vcard
Size: 339 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040608/68afbea4/yann.gavet.vcf


More information about the Insight-users mailing list