Re: [fpc-pascal] unit for PHostEnt definition

2015-12-17 Thread leledumbo
> after a whole night of unsuccessful googling I’m still wondering, which unit(s) I have to use to find a type definition of PHostEnt in linux. I need it for the gethostbyname function. > > In Windows it’s defined in winsock and there should be an equivalent > record in linux according to systems

Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Santiago A.
El 16/12/2015 a las 21:01, Sven Barth escribió: > Mode Delphi follows Delphi's syntax, thus no "generic" and > "specialize" keywords. Yes, you are right. I was just looking the objfpc syntax. > > The problem isn't default indexed properties. I guess your TRegAlias > is a record, thus it will be

Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Sven Barth
Am 17.12.2015 11:18 schrieb "Santiago A." : > I can live with no passing them as var parameters, but I thing it is a > little cumbersome for setting fields. I will try using pointers. What do you mean with var-parameters? Regards, Sven

Re: [fpc-pascal] set code page

2015-12-17 Thread Dariusz Mazur
On 2015-12-17 13:40, Mattias Gaertner wrote: On Thu, 17 Dec 2015 13:36:17 +0100 Dariusz Mazur wrote: Hi is there possible to set codepage {$codepage xxx} to cp_none Do you mean CP_ACP? maybe yes, this don't know as well -- Darek

[fpc-pascal] FPC 3.0 vs 2.6.4 under FreeBSD

2015-12-17 Thread Graeme Geldenhuys
Hi, Just wanted to say kudos to the Free Pascal team for doing a GREAT job with FPC 3.0. I did a couple of tests and the exact same project with exact same compiler parameters is much improved when compiled with FPC 3.0 (vs 2.6.4) For example. The 64-bit executable size reduced from 2.35MB

Re: [fpc-pascal] FPC 3.0 vs 2.6.4 under FreeBSD

2015-12-17 Thread Jonas Maebe
Graeme Geldenhuys wrote on Thu, 17 Dec 2015: For example. The 64-bit executable size reduced from 2.35MB down to 1.42MB. It is very unlikely that this difference is primarily due to improvements in compiler code or data generation between 2.6.4 and 3.0. Maybe one of these binaries is

Re: [fpc-pascal] FPC 3.0 vs 2.6.4 under FreeBSD

2015-12-17 Thread Graeme Geldenhuys
On 2015-12-17 13:23, Graeme Geldenhuys wrote: > Nope, the news seems to be that good. ;-) I tried with a few projects now, and the executable is always smaller when compiled with FPC 3.0 Here is another example: -rwxr-xr-x 1 graemeg graemeg 1551040 17 Dec 13:28 docview-2.6.4 -rwxr-xr-x 1

[fpc-pascal] set code page

2015-12-17 Thread Dariusz Mazur
Hi is there possible to set codepage {$codepage xxx} to cp_none for example one source file have {$codepage 1250} but rest i need default (without any setting) -- Darek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Santiago A.
El 17/12/2015 a las 11:35, Sven Barth escribió: > > Am 17.12.2015 11:18 schrieb "Santiago A." >: > > I can live with no passing them as var parameters, but I thing it is a > > little cumbersome for setting fields. I will try using pointers. > >

Re: [fpc-pascal] set code page

2015-12-17 Thread Mattias Gaertner
On Thu, 17 Dec 2015 13:36:17 +0100 Dariusz Mazur wrote: > Hi >is there possible to set codepage {$codepage xxx} to cp_none Do you mean CP_ACP? > for example one source file have {$codepage 1250} but rest i need > default (without any setting) Mattias

Re: [fpc-pascal] FPC 3.0 vs 2.6.4 under FreeBSD

2015-12-17 Thread Jonas Maebe
Graeme Geldenhuys wrote on Thu, 17 Dec 2015: On 2015-12-17 13:14, Jonas Maebe wrote: It is very unlikely that this difference is primarily due to improvements in compiler code or data generation between 2.6.4 and 3.0. Maybe one of these binaries is stripped and the other not Nope, the news

Re: [fpc-pascal] FPC 3.0 vs 2.6.4 under FreeBSD

2015-12-17 Thread Graeme Geldenhuys
On 2015-12-17 13:14, Jonas Maebe wrote: > It is very unlikely that this difference is primarily due to > improvements in compiler code or data generation between 2.6.4 and > 3.0. Maybe one of these binaries is stripped and the other not Nope, the news seems to be that good. ;-) I used MSEide

Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Sven Barth
Am 17.12.2015 13:37 schrieb "Santiago A." : > > El 17/12/2015 a las 11:35, Sven Barth escribió: >> >> Am 17.12.2015 11:18 schrieb "Santiago A." : >> > I can live with no passing them as var parameters, but I thing it is a >> > little cumbersome for setting

[fpc-pascal] Lack of 'volatile' a serious issue. Any other such caveats?

2015-12-17 Thread R. Diez
Hi all: I have fond memories of Turbo Pascal and Delphi, and the latest FreePascal version seems promising enough. When I read that you can also write embedded firmware with it, I decided to have a look. I need a Windows and Linux GUI for my embedded firmware, and a development environment

Re: [fpc-pascal] buggy debian package

2015-12-17 Thread Jonas Maebe
Mattias Gaertner wrote: Debian has a FPC 3.0.0 package called "rc-buggy". https://packages.debian.org/search?keywords=fpc=names=all=all Is it just me, or does "buggy" sound a bit below awesome? It's their alias for the "experimental" branch. Just like "sid" is "unstable", although that

Re: [fpc-pascal] Linker error

2015-12-17 Thread Jonas Maebe
Mattias Gaertner wrote: What could be the cause of this linker error: main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet /usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o:

[fpc-pascal] Linker error

2015-12-17 Thread Mattias Gaertner
Hi, What could be the cause of this linker error: main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet /usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in

[fpc-pascal] buggy debian package

2015-12-17 Thread Mattias Gaertner
Hi, Debian has a FPC 3.0.0 package called "rc-buggy". https://packages.debian.org/search?keywords=fpc=names=all=all Is it just me, or does "buggy" sound a bit below awesome? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org