Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-20 Thread Marcos Douglas
On Sat, Apr 20, 2013 at 2:47 AM, Toru Takubo wrote: > (2013/04/19 21:22), Marcos Douglas wrote: >> > (snip) > >>> >>> With analogical thinking, I expected that the following might work >>> for TSQLQuery in FPC: >>> >>> var >>>r,i: Integer; >>>DBQ: TSQLQuery; >>> begin >>> ... >>> DBQ.S

Re: [fpc-pascal] fcl-stl in 2.6.2 packaged release (not source code)

2013-04-20 Thread Marco van de Voort
In our previous episode, leledumbo said: > Recently someone asked me a question which I answer using fcl-stl units, > however the OP who uses 2.6.2 installed using the installer said the > compiler can't find those g* units. Another person reports the same thing on > linux. Does 2.6.2 packaged rele

Re: [fpc-pascal] Statically link library

2013-04-20 Thread Marco van de Voort
In our previous episode, Ludo Brands said: > _strcpy should be in msvcrt. It is defined in the mingw libmsvcrt.a file > on my system. Is your lib path correct? > > BTW I use an explicit {$linklib libmsvcrt.a} with mingw. Afaik that is needed, gdbint also does this. For people interested in the li

Re: [fpc-pascal] Statically link library

2013-04-20 Thread Ludo Brands
On 04/20/2013 11:54 AM, Darius Blaszyk wrote: > Hi, > > I'm linking a C and FPC program but I keep on getting undifined symbols > (see example below). > > Error: Undefined symbol: _strcpy > Sofar I have added: > > {$linklib msvcrt} > {$linklib gcc} > > What other libraries should I add? BT

[fpc-pascal] Statically link library

2013-04-20 Thread Darius Blaszyk
Hi, I'm linking a C and FPC program but I keep on getting undifined symbols (see example below). Error: Undefined symbol: _strcpy Sofar I have added: {$linklib msvcrt} {$linklib gcc} What other libraries should I add? BTW, I'm compiling the C library with MinGW. Regards, Darius

Re: [fpc-pascal] SqlDB vs Zeos: TDataset.FieldDefs[].Size

2013-04-20 Thread Ludo Brands
On 04/19/2013 05:59 PM, Graeme Geldenhuys wrote: > Hi, > > I have a Firebird database living on a FreeBSD server. I did not specify > a charset when the database was created. > > I have a table with a string field defined as VarChar(10). > > When I use SqlDB and retrieve the Size of that field v

[fpc-pascal] SqlDB vs Zeos: TDataset.FieldDefs[].Size

2013-04-20 Thread Graeme Geldenhuys
Hi, I have a Firebird database living on a FreeBSD server. I did not specify a charset when the database was created. I have a table with a string field defined as VarChar(10). When I use SqlDB and retrieve the Size of that field via... FDataset.FieldDefs[AIndex].Size SqlDB returns 10, whic

Re: [fpc-pascal] LLVM (again)

2013-04-20 Thread Vittorio Giovara
On Fri, Apr 19, 2013 at 2:49 PM, Mark Morgan Lloyd < markmll.fpc-pas...@telemetry.co.uk> wrote: > Sven Barth wrote: > >> Am 19.04.2013 14:05, schrieb Sven Barth: >> >>> Am 19.04.2013 14:02, schrieb Reimar Grabowski: >>> Hi, I have read the discussions about FPC using LLVM and the re

Re: [fpc-pascal] Yet again Objects auto destruction

2013-04-20 Thread August Oktobar
Great idea! On Thu, Apr 18, 2013 at 3:55 PM, Zaher Dirkey wrote: > I think it is not the first time this topic was opened, but still think we > need when using object to have automatically destructor called by compiler > when the object freed > > TmyObject = object >FSQL: TStringList; >

Re: [fpc-pascal] Re: How can retrive value from OUT parameter?

2013-04-20 Thread Reinier Olislagers
On 20-4-2013 5:01, Toru Takubo wrote: > (2013/04/19 18:53), Reinier Olislagers wrote: >> On 19-4-2013 9:26, Toru Takubo wrote: >>> With analogical thinking, I expected that the following might work >>> for TSQLQuery in FPC: >>> >>> var >>>r,i: Integer; >>>DBQ: TSQLQuery; >>> begin >>> ... >