A
Amit
Hi,
I am trying to use INFINITY in a c++ code that I have written. I am
using gcc 3.3 on os X 10.3.9
The compiler gives a warning
warning: floating constant exceeds range of "float"
My code uses the following where this error is given:
double c = INFINITY;
I use the following to compile my code:
g++ -c -pg -O -Wno-deprecated -ansi -pedantic -DANSI_HEADERS
-D_G_HAVE_BOOL test.C -I.
How can I resolve this problem? I used this same code in an older
version of gcc(probably 3.1 on RH 9) and it worked fine there..
thanks,
--A.
I am trying to use INFINITY in a c++ code that I have written. I am
using gcc 3.3 on os X 10.3.9
The compiler gives a warning
warning: floating constant exceeds range of "float"
My code uses the following where this error is given:
double c = INFINITY;
I use the following to compile my code:
g++ -c -pg -O -Wno-deprecated -ansi -pedantic -DANSI_HEADERS
-D_G_HAVE_BOOL test.C -I.
How can I resolve this problem? I used this same code in an older
version of gcc(probably 3.1 on RH 9) and it worked fine there..
thanks,
--A.