Posted: 2nd Dec 2007 00:31
ok I included the math.h library
now I use this like I saw in a previous post
dbSyncMask((float)pow(2,0));
and I get compiler errors. If I remark this line out then it works.
Anyways. the errors are
1>------ Build started: Project: DbpVsGDK, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>c:\documents and settings\david\my documents\visual studio 2008\projects\dbpvsgdk\dbpvsgdk\main.cpp(197) : error C2668: 'pow' : ambiguous call to overloaded function
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
1> while trying to match the argument list '(int, int)'
1>c:\documents and settings\david\my documents\visual studio 2008\projects\dbpvsgdk\dbpvsgdk\main.cpp(204) : error C2668: 'pow' : ambiguous call to overloaded function
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
1> while trying to match the argument list '(int, int)'
1>c:\documents and settings\david\my documents\visual studio 2008\projects\dbpvsgdk\dbpvsgdk\main.cpp(212) : error C2668: 'pow' : ambiguous call to overloaded function
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
1> while trying to match the argument list '(int, int)'
1>c:\documents and settings\david\my documents\visual studio 2008\projects\dbpvsgdk\dbpvsgdk\main.cpp(227) : error C2668: 'pow' : ambiguous call to overloaded function
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
1> while trying to match the argument list '(int, int)'
1>c:\documents and settings\david\my documents\visual studio 2008\projects\dbpvsgdk\dbpvsgdk\main.cpp(245) : error C2668: 'pow' : ambiguous call to overloaded function
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
1> while trying to match the argument list '(int, int)'
1>Build log was saved at "file://c:\Documents and Settings\David\My Documents\Visual Studio 2008\Projects\DbpVsGDK\DbpVsGDK\Debug\BuildLog.htm"
1>DbpVsGDK - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========