Re: [fpc-pascal] type Ta = 1..10; var a : Ta; // a not initialized = crash

2007-09-21 Thread David Pethes
Skybuck Flying wrote: The following program compiled with free pascal 1.0.8 crashes: The current version of freepascal is 2.2.0, please update. It won't crash any more. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

[fpc-pascal] type Ta = 1..10; var a : Ta; // a not initialized = crash

2007-09-21 Thread Skybuck Flying
Hello, The following program compiled with free pascal 1.0.8 crashes: type Ta = 1..10; Tb = 1..5; var a : Ta; b : Tb; begin // a := 1; // uncommenting these lines leads to crash. // b := 2; a := b; writeln( a ); writeln('test'); readln; end. (Also tested it in Delphi 2007, does not c

[fpc-pascal] JSON implementation

2007-09-21 Thread Michael Van Canneyt
Hi, For those that need JSON support (JavaScript Object Notation), I committed a hopefully complete implementation to packages/fcl-json. It contains demo programs and a fpcunit testsuite. There is a TJSONConfig component, similar to the TXMConfig component that comes with the XML implementation

Re: [fpc-pascal] Compiler 2.20 for Arm

2007-09-21 Thread Marco van de Voort
> > > Install a newer version of ld which does support the --gc-sections flag. > > I found a Debian tool chain (http://www.emdebian.org/ -- > binutils-arm-linux-gnu_2.18- > 1_i386.deb). It works ok, but the linker gives some warnings > > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libgcc_s

Re: [fpc-pascal] lmysqlclient not found again while compile in fedora 7

2007-09-21 Thread Marco van de Voort
> Op donderdag 20-09-2007 om 15:24 uur [tijdzone -0700], schreef Andi > Purwito: > > found". Even after make symbolic link to /usr/lib/mysql/...I have > > no idea why this always happen again every migrate. > I had the same problem yesterday. And it has to do with Fedora 7. Some > ppl thought tha

Re: [fpc-pascal] Compiler 2.20 for Arm

2007-09-21 Thread Carsten Bager
> > Install a newer version of ld which does support the --gc-sections flag. I found a Debian tool chain (http://www.emdebian.org/ -- binutils-arm-linux-gnu_2.18- 1_i386.deb). It works ok, but the linker gives some warnings /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libgcc_s.so when searc

Re: [fpc-pascal] destructor TDecompressionStream.Destroy question

2007-09-21 Thread David Mears
Michael Van Canneyt wrote: > On Thu, 20 Sep 2007, David Mears wrote: > > >> from fpc/packages/fcl-base/src/inc/zstream.pp >> >> I'm not really sure why this is in the destructor for tdecompressionstream. >> >> if FZRec.avail_in <> 0 then >> Source.Seek(-FZRec.i, soFromCurrent); >> > >

Re: [fpc-pascal] lmysqlclient not found again while compile in fedora 7

2007-09-21 Thread Joost van der Sluis
Op donderdag 20-09-2007 om 15:24 uur [tijdzone -0700], schreef Andi Purwito: > I have just update my fpc to v2.2.0 under fedora 7. But error occured while > compile program that uses mysql4, "lmysqlclient not found". Even > after make symbolic link to /usr/lib/mysql/...I have no idea why this alw