[Insight-developers] The pow function vs. SGI MIPSPro
7.3.1.3m
William A. Hoffman
billlist at nycap.rr.com
Wed Feb 23 20:31:27 EST 2005
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
More information about the Insight-developers
mailing list