This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug
- To: bug-gcc at gnu dot org
- Subject: Re: Bug
- From: "Edmund Witkowski" <edwitkowski at hotmail dot com>
- Date: Mon, 13 Mar 2000 10:01:32 PST
I am using the latest version of your GCC compiler
for Palm OS applications obtained at www.palm.com web-site.
Your previous version WAS BEAUTIFUL! Your latest has me
depressed and forced me to lay out $500 for CodeWarrior,
regrettfully.
BUG:
Palm API 3.0 and later has Float/Double support.
>>FlpCompDouble fcd1;
>>long num_long;
>>char str2[30];
>>StrCopy(str2, "75.5");
>>fcd1.fd = FlpAToF(str2); // Causes BUS ERROR
>>fcd1.fd = _d_itod(num_long); // CAUSES ERROR!
>>fcd1.fd = _d_itod(num_long); // Causes ADDRESS ERROR!
But the following code snippet DOES WORK!
>>// LONG -> DOUBLE -> STRING
>>num_long = 7575;
>>fcd1.d = (double)num_long;
>>Clear_String(str2, 30);
>>fcd1.d = fcd1.d * 3.0;
>>FlpFToA(fcd1.fd, str1);
I have a program that is written in 'C' that would read
USER INPUT which is a STRING, but that STRING needed to
be converted into a DOUBLE and further manipulation required
conversion to LONG. Under the older compiler the program
compiled and worked GREAT! Same code compiled with new compiler
will compile but ALL CALCULATIONS are ZERO!!! There seems
to be a serious bug with the compiler.
Can anyone help?!?
I am willing to pay a couple hundred dollars to
make the GCC compiler work (I don't like the CodeWarrior one at all.)
My home # is 609-585-4735
work# is 609-282-9964.
Ed Witkowski
Thank you...
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com