| help: compiler complains about overloading hi,
i'm using msvs .net 2003. i'm using plain c++. when i compile a piece of code that uses pow(), there are a ton of complains from the compiler than pow() can be overloaded in more than 1 way and it doesn't which way i'm using.
can someone tell me how i can work-around this kind of stringent checks from the compiler?
thanks in advance!
Compiling...
bump_mapping__step_1.cpp
c:\Program Files\NVIDIA Corporation\SDK\DEMOS\OpenGL\inc\glh\glh_glut.h(55 8) : error C2666: 'pow' : 7 overloads have similar conversions
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(620): could be 'long double pow(long double,int)'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(618): or 'long double pow(long double,long double)'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(572): or 'float pow(float,int)'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(570): or 'float pow(float,float)'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(534): or 'double pow(int,int)'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(532): or 'double pow(double,int)'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(195): or 'double pow(double,double)'
while trying to match the argument list '(int, double)' |