This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: std::cout
- From: Eduardo Osorio Armenta <e_osorio at yahoo dot com>
- To: de Chalendar Gael <de-chalendarg at zoe dot cea dot fr>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 4 Dec 2002 09:26:39 -0800 (PST)
- Subject: Re: std::cout
- Reply-to: eduardoo at antar dot com dot mx
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