[fpc-pascal] ARM-Linux, building RTL fails

2007-05-18 Thread Bernd Mueller
Hello, with latest Trunk, Rev. 7387, building of the ARM-Linux RTL fails: ppcrossarm.exe -Tlinux -Parm -XParm-linux- -Xc -Xr -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU../../rtl/units/arm-linux -Tlinux -CX -darm -Us -Sg system.pp softfpu.pp(122,12) Error: Duplicate identifier UInt64

Re: [fpc-pascal] ARM-Linux, building RTL fails

2007-05-18 Thread Bernd Mueller
Hello again, with latest Trunk, Rev. 7387, building of the ARM-Linux RTL fails: ppcrossarm.exe -Tlinux -Parm -XParm-linux- -Xc -Xr -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU../../rtl/units/arm-linux -Tlinux -CX -darm -Us -Sg system.pp softfpu.pp(122,12) Error: Duplicate identifier

Re: [fpc-pascal] writing programs for non Intel Processors

2007-05-18 Thread Matt Emson
The Motorola MPx220 runs a 200-MHz Texas Instruments OMAP 1611 processor, which is a a 32bit ARM v5 with a ARM926EJ-S core. It runs Windows 2003 Smartphone though, so I'm guessing the answer is a little more tricky - probably no. M - Original Message - From: Pianoman To:

[fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread ezrashumla
Hi I am a new user of FPC can somebody guide me how to access directly hardware ports with FPC Thanks Ezra Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.

Re: [fpc-pascal] writing programs for non Intel Processors

2007-05-18 Thread Felipe Monteiro de Carvalho
On 5/17/07, Matt Emson [EMAIL PROTECTED] wrote: It runs Windows 2003 Smartphone though, so I'm guessing the answer is a little more tricky - probably no. Why no? Windows 2003 Smartphone is still Windows CE. Microsoft just like to give several wierd names for the different versions of Windows

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread Daniël Mantione
Op Fri, 18 May 2007, schreef Felipe Monteiro de Carvalho: The port array will fail on NT versions of windows. Better to use the methods described here: http://wiki.lazarus.freepascal.org/Hardware_Access Can you please implement a ports unit for Windows then? The last thing we need is

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread Felipe Monteiro de Carvalho
The port array will fail on NT versions of windows. Better to use the methods described here: http://wiki.lazarus.freepascal.org/Hardware_Access -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread Daniël Mantione
Op Thu, 17 May 2007, schreef [EMAIL PROTECTED]: Hi I am a new user of FPC can somebody guide me how to access directly hardware ports with FPC http://www.freepascal.org/faq.var#accessioports Daniël___ fpc-pascal maillist -

Re: [fpc-pascal] writing programs for non Intel Processors

2007-05-18 Thread Matt Emson
Why no? Because Windows CE Win32. Smartphone more so. However, the word probably conveyed my doubt that I had all the facts. There you go. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] How to know if a class implements a method

2007-05-18 Thread Joao Morais
Hello Matt, thanks for your fast input. Matt Emson wrote: Any idea how I know if a class, in a class pointer, overrides a virtual method? Eg: snip vfooclass := tboo1; // vfooclass doesn't implement sample. vfooclass := tboo2; // vfooclass implements sample. You need to implement a

Re: [fpc-pascal] How to know if a class implements a method

2007-05-18 Thread Matt Emson
Any idea how I know if a class, in a class pointer, overrides a virtual method? Eg: snip vfooclass := tboo1; // vfooclass doesn't implement sample. vfooclass := tboo2; // vfooclass implements sample. You need to implement a virtual method, even if it does nothing. Are you sure you're

[fpc-pascal] How to know if a class implements a method

2007-05-18 Thread Joao Morais
Hello, Any idea how I know if a class, in a class pointer, overrides a virtual method? Eg: tfooclass = class of tfoo; tfoo = class procedure sample; virtual; end; tboo1 = class(tfoo) end; tboo2 = class(tfoo) procedure sample; override; end; ... vfooclass := tboo1; // vfooclass

Re: [fpc-pascal] How to know if a class implements a method

2007-05-18 Thread Matt Emson
So, at this moment I know that I can: 1. Use a safe, magic and efficient way, but I need to know if it exists; 2. Create a light instance using vfooclass.NewInstance method; 3. hack the vmt. Which approach do you use? I have worked with a bespoke OPF a few years ago. The way we got around