[fpc-devel] Compiler 240 (and MySql)
Bernd Mueller
mueller.b at gmx.net
Mon Feb 22 10:51:44 CET 2010
Carsten Bager wrote:
> I have a problem with the new 240 compiler.
> I get errors when calling functions in the sysutils unit.
> I have tested the 251 compiler, and it was exactly the same.
> I am normally using the 224 compiler, and it works fine.
[...]
> program hw1;
> uses
> sysutils;
>
> Type
> Datetime_typ=Packed record
> year,month,day,hour,min,sec,sec100,dayOfWeek:word;
> end;
> var dt:dateTime_typ;
> Begin
> WriteLn('Test');
> decodeTime(Time,dt.hour,dt.min,dt.sec,dt.sec100);
> End.
I can confirm, that the program crashes on ARM-Linux/OABI/FPA/uClibc
compiled with fpc 2.4.0. I think the problem is related to floating
point, since an ordinary "writeln(1 / 3);" crashes the machine too.
Regards, Bernd.
More information about the fpc-devel
mailing list