[fpc-pascal] cross compiler linker issue win32 to Linux

2012-05-07 Thread Tony Caduto
Hi, I have the cross compiler setup(win32 to linux) and I can compile most of my apps just fine except for one that is a daemon and uses cthreads and cmem in the uses. It does not give any errors except for linker error and if I change the verbosity to show all it still does not show anything mean

Re: RE : RE : [fpc-pascal] Reversing bit-order of byte

2012-05-07 Thread Geoffrey Barton
On 7 May 2012, at 13:26, fpc-pascal-requ...@lists.freepascal.org wrote: > > > Message: 4 > Date: Mon, 07 May 2012 12:59:58 +0200 > From: Koenraad Lelong > Subject: Re: RE : RE : [fpc-pascal] Reversing bit-order of byte > To: fpc-pascal@lists.freepascal.org > Message-ID: <4fa7ab2e.9050...@de-bro

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Tomas Hajny
On Mon, May 7, 2012 14:26, Mattias Gaertner wrote: > On Mon, 7 May 2012 13:34:50 +0200 (CEST) "Tomas Hajny" wrote: >> 54 lines for WinXX, 144 for OS/2 and 278 for GO32v2 (all without the >> additional platform specific implementation for changing the passed >> environment). > > Where do got those

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > It's not big. The RTL lacks little functions for scripts. For > example download an URL, get a list of files in a directory, load a > xml file, test a RE. > > Running pascal programs as scripts is only the first step. The > next step is to provide

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Mattias Gaertner
On Mon, 7 May 2012 13:34:50 +0200 (CEST) "Tomas Hajny" wrote: > On Mon, May 7, 2012 12:21, Mattias Gaertner wrote: > > On Sat, 5 May 2012 15:04:05 +0200 (CEST) > > "Tomas Hajny" wrote: >[...] > > The implementation for unix is only a few lines. > > I guess for winxx and os/2 too. > > 54 lines f

Re: [fpc-pascal] ObjectBinaryToText - how to write only selected property?

2012-05-07 Thread Graeme Geldenhuys
On 5 May 2012 18:15, Krzysztof wrote: > I could use RTTI and TypeInfo, but > ObjectBinaryToText can parse property hierarchy > (Propery1.Subproperty1.Color etc). Out of interest, I have written an "extended" RTTI unit which is used in the tiOPF project. All the functions in that unit support wha

[fpc-pascal] Re: Runs correctly when debugging.

2012-05-07 Thread Guillermo Martínez Jiménez
Thanks, Henry, > Can you give any more information about how it fails? It's a "SIGSEGV". The library is the Allegro library version 5.0.6. The error is inside an internal procedure that uploads a texture to OpenGL context, and it is used by other Allegro functions (i.e. loading pictures from fi

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Tomas Hajny
On Mon, May 7, 2012 12:21, Mattias Gaertner wrote: > On Sat, 5 May 2012 15:04:05 +0200 (CEST) > "Tomas Hajny" wrote: >> On Sat, May 5, 2012 14:13, Mattias Gaertner wrote: . . >> > ExecuteProcess is only a simple utility function. >> > All posix platforms can start a process with another >> > env

Re: RE : RE : [fpc-pascal] Reversing bit-order of byte

2012-05-07 Thread Koenraad Lelong
On 04-05-12 14:53, Koenraad Lelong wrote: On 04-05-12 14:31, Thomas Schatzl wrote: ... Compared to the other variants (e.g. with the multiplies, except for the table lookup) you already save a lot of cycles - although I guess they would be sufficiently fast anyway, considering the typical uart

Re: [fpc-pascal] ObjectBinaryToText - how to write only selected property?

2012-05-07 Thread Mattias Gaertner
On Sat, 5 May 2012 18:15:51 +0200 Krzysztof wrote: > Hi, > > ObjectBinaryToText method can save object structure to string, but how > save only some propertys? ObjectBinaryToText only converts between to formats. It does not save object structures. That is done by TWriter. TWriter normally save

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Mattias Gaertner
On Sat, 5 May 2012 15:04:05 +0200 (CEST) "Tomas Hajny" wrote: > On Sat, May 5, 2012 14:13, Mattias Gaertner wrote: > > On Sat, 5 May 2012 14:02:12 +0200 (CEST) > > "Tomas Hajny" wrote: > >> On Sat, May 5, 2012 09:22, Michael Van Canneyt wrote: > >> > On Fri, 4 May 2012, Mattias Gaertner wrote: >

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Mattias Gaertner
On Sat, 5 May 2012 17:43:44 +0200 Jonas Maebe wrote: > > On 05 May 2012, at 14:25, Mattias Gaertner wrote: > > > It uses only the file name, not the path to distinguish. > > Having two scripts with the same name recompiles every time you > > switch. > > This does mean that if a script is moved

Re: [fpc-pascal] Re: Linux sound (especially MIDI) programming: ALSA?

2012-05-07 Thread Mark Morgan Lloyd
leledumbo wrote: http://sourceforge.net/projects/fpalsa/ http://sourceforge.net/projects/humus/ Thanks for those. Also http://perso.wanadoo.es/plcl/alsapas/alsapas-en.html so as I thought there appears to be (at least) two sets of ALSA bindings: fpalsa and alsapas. Noted HuMuS, but that ap

Re: [fpc-pascal] Linux sound (especially MIDI) programming: ALSA?

2012-05-07 Thread Mark Morgan Lloyd
Wimpie Nortje wrote: On 2012/05/06 05:49 PM, Mark Morgan Lloyd wrote: Wimpie Nortje wrote: I have used ALSA to record sound. It was some time ago, I think on Kubuntu 10.04 or so. I can send you some code I used but I have no idea whether it will work under newer Linux's Thanks, but since it's