std::cout
Eduardo Osorio Armenta
e_osorio@yahoo.com
Wed Dec 4 09:26:00 GMT 2002
i do the changes...
#include <cmath>
using namespace std;
cout << "2^" << dec << i << " = 0x" << hex<< pow(2,
i) << endl;
and compile...
g++ exponencial.cpp -o exponencial -g -O2 -Wall -lm
but still...
exponencial.cpp:19: call of overloaded `pow(int,
int&)' is ambiguous
/usr/include/math.h:60: candidates are: double
pow(double, double)
/usr/include/c++/3.2/cmath:427: long
double std::pow(long
double, int)
/usr/include/c++/3.2/cmath:423: float
std::pow(float, int)
/usr/include/c++/3.2/cmath:419: double
std::pow(double, int)
/usr/include/c++/3.2/cmath:414: long
double std::pow(long
double, long double)
/usr/include/c++/3.2/cmath:401: float
std::pow(float, float)
make: *** [exponencial] Error 1
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the Gcc-help
mailing list