[Insight-developers] The pow function vs. SGI MIPSPro 7.3.1.3m

Lorensen, William E (Research) lorensen at crd.ge.com
Wed Feb 23 22:46:57 EST 2005


These were due to changes made today. Nothing to do with flags.

-----Original Message-----
From: insight-developers-bounces at itk.org
[mailto:insight-developers-bounces at itk.org]On Behalf Of William A.
Hoffman
Sent: Wednesday, February 23, 2005 8:31 PM
To: Kent Williams; insight-developers at itk.org
Subject: Re: [Insight-developers] The pow function vs. SGI MIPSPro
7.3.1.3m


I have set up the CMakelist files for Insight so that you should not have
to set any flags for the SGI.
The build settings used for rapture are here:

http://www.itk.org/Testing/Sites/rapture.sci.utah.edu/IRIX64-CC-7.3/20050223-0500-Nightly/Notes.html

The flags used can be found here:

IF(CMAKE_SYSTEM MATCHES "IRIX.*")
  IF(NOT CMAKE_COMPILER_IS_GNUCXX)
    SET(ITK_REQUIRED_CXX_FLAGS "${ITK_REQUIRED_CXX_FLAGS} -woff 15,84,1110,1209,1424,1468,3102,3210,3439  -no_auto_include -ptused -no_prelink")
    SET(ITK_REQUIRED_LINK_FLAGS "${ITK_REQUIRED_LINK_FLAGS}  -Wl,-woff15")
  ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
ENDIF(CMAKE_SYSTEM MATCHES "IRIX.*")


It could be that you are using a different compiler from SGI that is slightly different.
What version of CC are you using?

CC -version I think.

-Bill

At 04:40 PM 2/23/2005, Kent Williams wrote:
>I did an update to my Insight directory on an SGI platform today, and ran into some compiler errors. Specifically, when the pow() function is called I get errors of this form:
>
>cc-1282 CC: ERROR File = [...]Insight/Testing/Code/Common/itkBoundingBoxTest.cxx, Line = 184
> More than one instance of overloaded function "pow" matches the argument list.
>
>           Function symbol function "pow(double, double)" is ambiguous by
>                     inheritance.
>           Function symbol function "pow(float, float)" is ambiguous by
>                     inheritance.
>           Function symbol function "pow(long double, long double)" is
>                     ambiguous by inheritance.
>           Function symbol function "pow(float, int)" is ambiguous by
>                     inheritance.
>           Function symbol function "pow(double, int)" is ambiguous by
>                     inheritance.
>           Function symbol function "pow(long double, int)" is ambiguous by
>                     inheritance.
>           The argument types are:  (int, unsigned int).
>       if((*it)[i] != pow(-1,j/(int(pow(2,i)))))
>
>The compile flags we're using:
>-n32 -g -DUDEBUG -G0 -multigot  -xansi -LANG:std -LANG:ansi-for-init-scope=ON -woff  
>15,84,1110,1209,1424,1468,3102,3210,3439  -LANG:std -woff 15,84,1110,1209,1424,1468,3102,3210,3439  -no_auto_include -ptused -no_prelink 
>Now, I see all the SGI compiles were, as of the last roll-up, not showing any of the errors I'm seeing. I've done little fixes to get ITK built, but ultimately, shouldn't we be using the VXL math functions instead of math.h math functions?
>
>What compiler flags are others using when they build?
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk.org
>http://www.itk.org/mailman/listinfo/insight-developers

_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list