This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Conversion problem.
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Conversion problem.
- From: Jorge Mamoru Kobayashi <kobayashi at saci dot org dot br>
- Date: Wed, 09 Aug 2000 02:24:39 +0000
Hi, I'm not sure its a real bug, but,
its at least strange...
I've installed gcc 2.95.2 and tryied to install
the last version of mysql. (3.23.22)..
When I run mysql's configure script I got a message
telling me that gcc could not convert a long long to
float and aborted.
The code they were using to test is the following:
#include "confdefs.h"
#include <stdio.h>
typedef long long longlong;
main()
{
longlong ll=1;
float f;
FILE *file=fopen("conftestval", "w");
f = (float) ll;
fprintf(file,"%g\n",f);
close(file);
exit (0);
}
After done this, the script read conftestval file to see
if thereis a float value 1 there... And as it's not found,
the script says that the gcc can not convert the ll variable...
I'm really lost...
What could be wrong?
Thanks a lot in advance.
Jorge