[fpc-pascal] Re: Mipsel compilation: changing elf flags?!

2013-04-21 Thread Reinier Olislagers
On 21-4-2013 19:54, Mark Morgan Lloyd wrote: > Reinier Olislagers wrote: >> See this forum thread: >> http://lazarus.freepascal.org/index.php/topic,20664.msg119960.html#msg119960 >> >> >> Forum user ocye got mipsel binaries, but the ELF flags apparently need >> to be changed due to a bug in older L

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

2013-04-21 Thread Marcos Douglas
On Sun, Apr 21, 2013 at 11:18 PM, Toru Takubo wrote: > > (snip) > >> >>> I will try to proceed. On the other hand, I'm wondering if TSQLQuery >>> (or TMSSQLConnection) would natively support OUTPUT parameter and >>> RETURN_VALUE... >> >> >> Well, even using Delphi (4~7) I never used RETURN_VALUE.

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

2013-04-21 Thread Toru Takubo
(2013/04/22 10:46), Marcos Douglas wrote: On Sun, Apr 21, 2013 at 10:05 PM, Toru Takubo wrote: (2013/04/20 23:06), Marcos Douglas wrote: 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

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

2013-04-21 Thread Marcos Douglas
On Sun, Apr 21, 2013 at 10:05 PM, Toru Takubo wrote: > > (2013/04/20 23:06), Marcos Douglas wrote: >> >> 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 followi

[fpc-pascal] ppcjvm linking jar

2013-04-21 Thread Andrew Haines
Hi, I am stumped about how to link a program such as the example trange1.pp into a jar file. I've followed the instructions here: http://wiki.freepascal.org/FPC_JVM and the command java -cp /full/path/to/fpcjvm/units/jvm-java/rtl:. trange1 works fine. But I would like to make it a jar file

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

2013-04-21 Thread Toru Takubo
(2013/04/20 23:06), Marcos Douglas wrote: 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 ...

[fpc-pascal] GetCurrentDir

2013-04-21 Thread Mattias Gaertner
Hi, On one of my Linux machines GetCurrentDir returns '', when the working directory is a samba share. Is this a feature or a bug? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pasca

[fpc-pascal] The 2.6.2 RPM and Deb archives are still in preparation

2013-04-21 Thread Ched
Hello All, Some words about me: I'm a pascalist for now more than 25 years. I developped many embedded applications, but I don't feel well putting the hands on the compiler... About "The 2.6.2 RPM and Deb archives are still in preparation" seen on the the download page about linux/386, can I

Re: [fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-04-21 Thread Zaher Dirkey
1 - I have the source from Git, how to start without download the binary? 2 - What the best demo to open and start new project? ​I have a new project​ i like to build it on fpgui small one :) On Sat, Apr 20, 2013 at 9:16 PM, Graeme Geldenhuys wrote: > > fpGUI v1.0 is available > ===

Re: [fpc-pascal] Mipsel compilation: changing elf flags?!

2013-04-21 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: See this forum thread: http://lazarus.freepascal.org/index.php/topic,20664.msg119960.html#msg119960 Forum user ocye got mipsel binaries, but the ELF flags apparently need to be changed due to a bug in older Linux kernels. How can this be done? In addition, is there per

Re: [fpc-pascal] Statically link library

2013-04-21 Thread Marco van de Voort
In our previous episode, Vittorio Giovara said: > > Fpc can't call gcc. > > > > Well you could manually edit ppas.sh/link.res and substitute 'gcc' to > 'ld', and of course adjust all the flags. Possible, but not really sane. The platforms with a lot of static linking are mostly the non-unix ones,

[fpc-pascal] Re: TSocketServer and DoDisconnect event?

2013-04-21 Thread silvioprog
2013/4/19 silvioprog > Hi, > > Well, the TSocketServer has the event DoConnect, but, how to I know when a > client is disconnected? (eg, when I kill a client with Ctrl+Alt+Del) > > I find a event such as DoDisconnect, but it doesn't exists. > > Thank you! > Synapse use threads to do it: http://

[fpc-pascal] Mipsel compilation: changing elf flags?!

2013-04-21 Thread Reinier Olislagers
See this forum thread: http://lazarus.freepascal.org/index.php/topic,20664.msg119960.html#msg119960 Forum user ocye got mipsel binaries, but the ELF flags apparently need to be changed due to a bug in older Linux kernels. How can this be done? In addition, is there perhaps a compiler switch to ma

Re: [fpc-pascal] Statically link library

2013-04-21 Thread Vittorio Giovara
On Sun, Apr 21, 2013 at 2:36 PM, Marco van de Voort wrote: > In our previous episode, Vittorio Giovara said: > > > {$linklib gcc} > > > > > > What other libraries should I add? BTW, I'm compiling the C library > with MinGW. > > > > You need to instruct fpc to use gcc instead of default ld when yo

Re: [fpc-pascal] Statically link library

2013-04-21 Thread Marco van de Voort
In our previous episode, Vittorio Giovara said: > > {$linklib gcc} > > > > What other libraries should I add? BTW, I'm compiling the C library with > > MinGW. > > You need to instruct fpc to use gcc instead of default ld when you > link c/pas code statically. Fpc can't call gcc. > This is beca

Re: [fpc-pascal] Statically link library

2013-04-21 Thread Vittorio Giovara
On 20/apr/2013, at 11:55, 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? BTW, I

Re: [fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-04-21 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: fpGUI v1.0 is available I'm glad to announce the 1.0 release of fpGUI. This has been over a years worth of development, so a complete list of changes will be to big to list here. Congratulations and well done. I'll definitely take another look w

[fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-04-21 Thread Graeme Geldenhuys
fpGUI v1.0 is available I'm glad to announce the 1.0 release of fpGUI. This has been over a years worth of development, so a complete list of changes will be to big to list here. Here are just some highlights: - Improvements to the UI (forms) Designer - Lot of DocView

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

2013-04-21 Thread Graeme Geldenhuys
On 2013-04-20 10:11, Ludo Brands wrote: > > TFieldDef.Size is expressed in bytes. Zeos, IIRC, assumes a conversion > from any charset to utf8 could be made. Since UTF8 is up to 4 bytes per > char, a VarChar(10) can need up to 40 bytes to be represented in the I assumed it has something to do with