[Insight-users] Building ITK 1.0 on SGI

Jon Harald Kaspersen Jon.H.Kaspersen@sintef.no
Thu, 14 Nov 2002 07:38:51 +0100


--Apple-Mail-40-966673149
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	delsp=yes;
	charset=US-ASCII;
	format=flowed

Hi,

I have been trying to build ITK on a SGI running IRIX 6.5
Compiler is CC/cc MIPSpro Compilers: Version 7.3.1.3m

I am using ITK version 1.0 and CMake version 1.4.6

I am getting an error during compilation of the Numerics, like :

> /home/odin/geirart/download/InsightToolkit-1.0.0/Code/Numerics/ 
> itkRegularSte
> pGradientDescentBaseOptimizer.cxx -o
> itkRegularStepGradientDescentBaseOptimizer.o
> cc-1282 CC: ERROR File =
> /home/odin/geirart/download/InsightToolkit-1.0.0/Code/Numerics/vxl/ 
> vnl/vnl_m
> ath.h, Line = 146
>   More than one instance of overloaded function "std::sqrt" matches the
> argument
>           list.
>             Function symbol function "std::sqrt(const  
> std::complex<float>
> &)"
>                       is ambiguous by inheritance.
>             Function symbol function "std::sqrt(const  
> std::complex<double>
> &)"
>                       is ambiguous by inheritance.
>             Function symbol function
>                       "std::sqrt(const std::complex<long double> &)" is
>                       ambiguous by inheritance.
>             The argument types are:  (double).
>   inline float  vnl_math_sqrt(float x) { return float(  
> vcl_sqrt(double(x)));
> }
>                                                        ^
______snip____

Any idea's how to fix this ?

Regards
Jon
========================================================
Jon Harald Kaspersen			Tel: 		+47 73 59 75 89
Ph.D. Mechanical Engineering		Mob:		+47 93 03 65 90
Senior Scientist				Pager	+47 96 84 29 94
SINTEF Unimed - Ultralyd		Fax: 		+47 73 59 78 73
N-7465 Trondheim
NORWAY			e-mail:	Jon.H.Kaspersen@unimed.sintef.no
				WEB:	http://www.us.unimed.sintef.no/
========================================================
--Apple-Mail-40-966673149
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

Hi,


I have been trying to build ITK on a SGI running IRIX 6.5

Compiler is CC/cc MIPSpro Compilers: Version 7.3.1.3m


I am using ITK version 1.0 and CMake version 1.4.6


I am getting an error during compilation of the Numerics, like :


<excerpt>/home/odin/geirart/download/InsightToolkit-1.0.0/Code/Numerics/itkRegularSte

pGradientDescentBaseOptimizer.cxx -o

itkRegularStepGradientDescentBaseOptimizer.o

cc-1282 CC: ERROR File =

/home/odin/geirart/download/InsightToolkit-1.0.0/Code/Numerics/vxl/vnl/vnl_m

ath.h, Line = 146

  More than one instance of overloaded function "std::sqrt" matches the

argument

          list.

            Function symbol function "std::sqrt(const
std::complex<<float>

&)"

                      is ambiguous by inheritance.

            Function symbol function "std::sqrt(const
std::complex<<double>

&)"

                      is ambiguous by inheritance.

            Function symbol function

                      "std::sqrt(const std::complex<<long double> &)"
is

                      ambiguous by inheritance.

            The argument types are:  (double).

  inline float  vnl_math_sqrt(float x) { return float(
vcl_sqrt(double(x)));

}

                                                       ^

</excerpt>______snip____


Any idea's how to fix this ?


Regards

Jon

<fontfamily><param>Helvetica</param>========================================================

Jon Harald Kaspersen			Tel: 		+47 73 59 75 89

Ph.D. Mechanical Engineering		Mob:		+47 93 03 65 90

Senior Scientist				Pager	+47 96 84 29 94

SINTEF Unimed - Ultralyd		Fax: 		+47 73 59 78 73

N-7465 Trondheim

NORWAY			e-mail:	Jon.H.Kaspersen@unimed.sintef.no

				WEB:	<underline><color><param>1A1A,1A1A,FFFF</param>http://www.us.unimed.sintef.no/</color></underline>

========================================================</fontfamily>
--Apple-Mail-40-966673149--