This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Conversion problem.




 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]