Re: [fpc-pascal] Starting out with Free Pascal

2008-11-15 Thread Graeme Geldenhuys
On Sat, Nov 15, 2008 at 10:17 PM, Bill <[EMAIL PROTECTED]> wrote: > Should I learn study FPC first and then move on to Lazarus, or just start > with Lazarus? I think it should be okay to start directly with Lazarus. Lazarus IDE makes project management much easier and has some fantastic editor fea

Re: [fpc-pascal] re-opening stdout and sdterr

2008-11-15 Thread Marc Santhoff
Am Donnerstag, den 13.11.2008, 20:57 +0100 schrieb Jonas Maebe: > On 13 Nov 2008, at 01:42, Marc Santhoff wrote: > > > long time ago I had problems with stdxxx being in non-blocking i/o > > mode. > > The suggestion was to close and re-open the channels from the system > > units init code. > > >

Re: Re[6]: [fpc-pascal] UDF+FREEBSD+FIREBIRD FPC generate wrong object file???

2008-11-15 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > home: >gcc -ldl testl.c > home: >./a.out > loading library failed testudf.so: cannot open shared object file: No such > file or directory (skip the -ldl, it is a linuxism) ___ fpc-pascal maillist -

Re[6]: [fpc-pascal] UDF+FREEBSD+FIREBIRD FPC generate wrong object file???

2008-11-15 Thread Michael Van Canneyt
On Sat, 15 Nov 2008, KES wrote: > Здравствуйте, Michael. > > Вы писали 15 ноября 2008 г., 23:28:10: > > > > MVC> On Sat, 15 Nov 2008, KES wrote: > > >> Здравствуйте > >> > >> h) select fntest() from rdb$database > >> i) invalid requiest BLR at offset 60 > >> function FNTEST is not defined

Re[6]: [fpc-pascal] UDF+FREEBSD+FIREBIRD FPC generate wrong object file???

2008-11-15 Thread KES
Здравствуйте, Michael. Вы писали 15 ноября 2008 г., 23:28:10: MVC> On Sat, 15 Nov 2008, KES wrote: >> Здравствуйте >> >> h) select fntest() from rdb$database >> i) invalid requiest BLR at offset 60 >> function FNTEST is not defined >> module name or entrypoint could not be found >> >> >> CO

Re[5]: [fpc-pascal] UDF+FREEBSD+FIREBIRD FPC generate wrong object file???

2008-11-15 Thread Michael Van Canneyt
On Sat, 15 Nov 2008, KES wrote: > Здравствуйте > > h) select fntest() from rdb$database > i) invalid requiest BLR at offset 60 > function FNTEST is not defined > module name or entrypoint could not be found > > > CONCLUSION: FPC generate wrong object file??? Not necessarily. Please try to lo

[fpc-pascal] Starting out with Free Pascal

2008-11-15 Thread Bill
Hello, I'm absolutely new to this list... and to Pascal. I was getting pretty good with Foxpro programming when MS bought and then changed the program, eventually to kill it. I see the need to get back into programming and I remember a Foxpro instructor saying that Pascal was similar. So her

Re[5]: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-15 Thread KES
Здравствуйте Lets try all from beginning 1. Test how firebird recognize libxxx and xxx and xxx.so libraries (because of C variant of UDF works I will try gcc) a) source file: extern int c_test(); int c_test() { return 8; } -- С уважением, KES mailto:[EMAIL PROTECTED

[fpc-pascal] Re: TBufDataset broken in fixes_2_2

2008-11-15 Thread Funky Beast
Jonas Maebe wrote: > > On 15 Nov 2008, at 16:56, Funky Beast wrote: > >> Should I file a bug report? > > Yes, please. > > > Jonas > ___ > fpc-pascal maillist - > [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Done i

Re: [fpc-pascal] TBufDataset broken in fixes_2_2

2008-11-15 Thread Jonas Maebe
On 15 Nov 2008, at 16:56, Funky Beast wrote: Should I file a bug report? Yes, please. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] TBufDataset broken in fixes_2_2

2008-11-15 Thread Funky Beast
Hi, TBufDataset is broken in latest fixes_2_2. Can be reproduce with following code: var s: TSQLQuery; begin s := TSQLQuery; s.Free; end; Compiling fcl-db with debug info, the above code excepts at TBufDataset.Destroy destructor at the following position: For I:=0 to Length(FIndexes)-1 do

Re[5]: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-15 Thread KES
Здравствуйте, Michael. Вы писали 15 ноября 2008 г., 12:23:55: MVC> On Sat, 15 Nov 2008, KES wrote: >> Здравствуйте, Michael. >> >> Вы писали 15 ноября 2008 г., 2:52:48: >> >> >> >> MVC> On Sat, 15 Nov 2008, KES wrote: >> >> >> Здравствуйте, Michael. >> >> MVC> Zdravstvuyte... >> >> >> >

Re: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-15 Thread Stephano
KES wrote: #ld -shared -soname libtkes2.so.1 -o libtkes2.so.1.0 -lc tkes2.o #cp tkes2.so /usr/local/libexec/firebird/udf/ #cp tkes2.so.1.0 /usr/local/libexec/firebird/udf/ #cd /usr/local/libexec/firebird/udf/ #ls -l Is the above used in a script? If yes, then it is linking into libtkes2.so, bu

Re[2]: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-15 Thread KES
Здравствуйте, Stephano. Вы писали 15 ноября 2008 г., 9:52:09: S> KES wrote: >> library tkes2; >> >> {$mode objfpc} >> {$PACKRECORDS C} >> >> >> function somefn: integer; cdecl; export; >> begin >> somefn:= 3; >> end; >> >> exports >> //I do not do as: >> // somefn name 'somefn'; // because

Re: [fpc-pascal] Make FPC closer to hardware

2008-11-15 Thread Micha Nelissen
leledumbo wrote: Would it be a good idea to lower down (again) FPC so that it can be used easier for systems programming? example? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-

Re[4]: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-15 Thread Michael Van Canneyt
On Sat, 15 Nov 2008, KES wrote: > Здравствуйте, Michael. > > Вы писали 15 ноября 2008 г., 2:52:48: > > > > MVC> On Sat, 15 Nov 2008, KES wrote: > > >> Здравствуйте, Michael. > > MVC> Zdravstvuyte... > > >> >> I have tryied my example to compile in Delphi. Then I use DLL in > >> >> FireBir