Re: [fpc-pascal] Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-02-25 Thread Michael Van Canneyt
On Thu, 25 Feb 2016, Serguei TARASSOV wrote: Mr Bee wrote Sometimes I just don't understand the policy of FPC devs about Delphi compatibility. In some cases, they said FPC isn't a slave of Delphi, FPC should have better goal than Delphi, there's the Delphi way and there's the FPC way, breakin

Re: [fpc-pascal] Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-02-25 Thread Serguei TARASSOV
Mr Bee wrote > Sometimes I just don't understand the policy of FPC devs about Delphi > compatibility. In some cases, they said FPC isn't a slave of Delphi, FPC > should have better goal than Delphi, there's the Delphi way and there's > the FPC way, breaking old codes is consequence of a change, bla

Re: [fpc-pascal] Include directive for current procedure/method/function name?

2016-02-25 Thread Sven Barth
Am 26.02.2016 01:35 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2016-02-26 00:15, Graeme Geldenhuys wrote: > > Anybody know if there is something like that in FPC? > > No worries, found it. Seems Thunderbird doesn't search as well as > Firefox. ;) > > > I was looking for {$

Re: [fpc-pascal] Problem with StrMove() in a unit compilable in FPC and Delphi

2016-02-25 Thread silvioprog
On Thu, Feb 25, 2016 at 9:11 PM, silvioprog wrote: > Well, the problem persists, and I can't understand why this attached > project works only if compiled with Delphi. The results: > > Delphi: > > Length: 3 > aañ > > FPC: > > Length: 5 > aA£A± > > Lazarus 1.6 r51630 FPC 3.0.0 i386-win32-win32/win

Re: [fpc-pascal] Include directive for current procedure/method/function name?

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-26 00:15, Graeme Geldenhuys wrote: > Anybody know if there is something like that in FPC? No worries, found it. Seems Thunderbird doesn't search as well as Firefox. ;) I was looking for {$I %CURRENTROUTINE%} and {$I %LINE%} - but CURRENTROUTINE might only be in FPC 3.1+ Regards, -

[fpc-pascal] Include directive for current procedure/method/function name?

2016-02-25 Thread Graeme Geldenhuys
Hi, I vaguely remember somebody requesting something like this, but not sure if it was every implemented in FPC 2.6.4 or FPC 3.0. A macro that one can use in code to return a string, which is the name of the current procedure, function or method. Useful in debugging. Something like the {$I %da

Re: [fpc-pascal] Building FPC for Windows X64

2016-02-25 Thread Justin Smyth
i get these errors.. Free Pascal Compiler version 3.1.1 [2016/02/17] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others (1002) Target OS: Win64 for x64 (3104) Compiling fcllaz.pas (3104) Compiling registerfcl.pas (3104) Compiling lazaruspackageintf.pas (10001) PPU Loading C:\Lazar

Re: [fpc-pascal] Wiki etc.- where? [ot]

2016-02-25 Thread Mark Morgan Lloyd
Lukasz Sokol wrote: On 25/02/16 14:37, Mark Morgan Lloyd wrote: I was hoping to use to resurrect LinuxPMI (OpenMOSIX) Wow, I remember trying to boot up a cluster of OpenMOSIX machines from CD's (remastered Knoppix) :) back in 2004 ;) Not much left of that world any more, sadly; since the OM

Re: [fpc-pascal] Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-02-25 Thread Florian Klämpfl
Am 25.02.2016 um 01:59 schrieb Mr Bee: > Pada Rabu, 24 Februari 2016 18:40, Marco van de Voort > menulis: > > > >> In our previous episode, Mark Morgan Lloyd said: >> > > (remember recent discussion about IfThen pseudo-function). >> > >> > More relevant to your situation, I remember discussion

Re: [fpc-pascal] Problem with StrMove() in a unit compilable in FPC and Delphi

2016-02-25 Thread silvioprog
On Thu, Feb 25, 2016 at 3:47 PM, Jonas Maebe wrote: > On 25/02/16 19:31, silvioprog wrote: > > So, is the FPC StrMove() function compatible with the Delphi one? > > This has nothing to do with StrMove, since clearly the original string is > already different. If you compile your source code in D

Re: [fpc-pascal] Problem with StrMove() in a unit compilable in FPC and Delphi

2016-02-25 Thread silvioprog
On Thu, Feb 25, 2016 at 4:28 PM, silvioprog wrote: > On Thu, Feb 25, 2016 at 3:47 PM, Jonas Maebe > wrote: > >> On 25/02/16 19:31, silvioprog wrote: >> >> So, is the FPC StrMove() function compatible with the Delphi one? >> >> This has nothing to do with StrMove, since clearly the original stri

Re: [fpc-pascal] Problem with StrMove() in a unit compilable in FPC and Delphi

2016-02-25 Thread Jonas Maebe
On 25/02/16 19:31, silvioprog wrote: So, is the FPC StrMove() function compatible with the Delphi one? This has nothing to do with StrMove, since clearly the original string is already different. If you compile your source code in Delphi with --codepage=65001, it should give the same result a

[fpc-pascal] Problem with StrMove() in a unit compilable in FPC and Delphi

2016-02-25 Thread silvioprog
Hello, I want to use the StrMove() function in a unit compilable in Delphi (XE) and FPC, but I don't know why it doesn't work on FPC. Consider the following code: {$IFDEF FPC} {$codepage utf8} // I need to keep my unit in UTF-8 {$ENDIF} var a: AnsiString; la: Integer; pa: PAnsiChar; b:

Re: [fpc-pascal] Building FPC for Windows X64

2016-02-25 Thread Sven Barth
Am 25.02.2016 12:19 schrieb "Justin Smyth" : > When I try to build lazarus it fails , yet it I build the i386-win32 copy it works fine – its not lazarus it’s the copy of fpc I have created as I get the same error on a older copy of lazarus ( 1.2.6 as an example) Since my crystal ball is broken wou

Re: [fpc-pascal] Wiki etc.- where? [ot]

2016-02-25 Thread Lukasz Sokol
On 25/02/16 14:37, Mark Morgan Lloyd wrote: > I was hoping to use to resurrect LinuxPMI (OpenMOSIX) Wow, I remember trying to boot up a cluster of OpenMOSIX machines from CD's (remastered Knoppix) :) back in 2004 ;) Not much left of that world any more, sadly; since the OM creator abandoned the

Re: [fpc-pascal] Wiki etc.- where?

2016-02-25 Thread Mark Morgan Lloyd
Jonas Maebe wrote: Mark Morgan Lloyd wrote on Thu, 25 Feb 2016: http://www.freepascal.org/ points to http://wiki.freepascal.org/ for the wiki, which is giving me a permanent 403 "Forbidden". Anybody know what's going on? Should be fixed now. You were caught by a rule I added for certain sp

Re: [fpc-pascal] Bls: Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-02-25 Thread Jonas Maebe
Mr Bee wrote on Thu, 25 Feb 2016: So, which Delphi that FPC keep the compatibility with? The old Delphi or the new Delphi? How old is old? How new is new?  We added {$mode delphiunicode} for newer Delphi versions (generally 2009+), so I propose to make {$j-} the default there. Jonas ___

[fpc-pascal] Bls: Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-02-25 Thread Mr Bee
So, which Delphi that FPC keep the compatibility with? The old Delphi or the new Delphi? How old is old? How new is new?  –Mr Bee Pada Kamis, 25 Februari 2016 14:05, Sven Barth menulis: Am 25.02.2016 02:00 schrieb "Mr Bee" : > Maybe FPC devs should give us the "rule" or policy about w

[fpc-pascal] Crash using library.

2016-02-25 Thread fredvs
Hello. I use a audio library (libfaad.so) for reading *.m4a audio files. But, after 2 loading-run, the program crash. Here is the result of the debugger: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe7868700 (LWP 4915)] 0x00436377 in SYSTEM_$$_WAITFREE

Re: [fpc-pascal] Wiki etc.- where?

2016-02-25 Thread Jonas Maebe
Mark Morgan Lloyd wrote on Thu, 25 Feb 2016: http://www.freepascal.org/ points to http://wiki.freepascal.org/ for the wiki, which is giving me a permanent 403 "Forbidden". Anybody know what's going on? Should be fixed now. You were caught by a rule I added for certain spambots. I didn't

Re: [fpc-pascal] Wiki etc.- where?

2016-02-25 Thread Vincent Snijders
2016-02-25 12:39 GMT+01:00 Mark Morgan Lloyd < markmll.fpc-pas...@telemetry.co.uk>: > http://www.freepascal.org/ points to http://wiki.freepascal.org/ for the > wiki, which is giving me a permanent 403 "Forbidden". > > Anybody know what's going on? > I don't get such error. Last week a mediawiki

[fpc-pascal] Wiki etc.- where?

2016-02-25 Thread Mark Morgan Lloyd
http://www.freepascal.org/ points to http://wiki.freepascal.org/ for the wiki, which is giving me a permanent 403 "Forbidden". Anybody know what's going on? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _

[fpc-pascal] Building FPC for Windows X64

2016-02-25 Thread Justin Smyth
I'm having some issues where when I try to build fpc for windows x64 from win32 it seems to have a few issues I build my fpc from the trunk release using this command make all install OS_TARGET=win64 CPU_TARGET=x86_64 INSTALL_PREFIX=c:\fpc\3.1.1 CROSSCOMPILE=1 I then copy a old fpc.