[fpc-pascal] Generate RTF file with UTF-8 encoded data

2009-12-09 Thread Luiz Americo Pereira Camara
I need to create a RTF file from UTF-8 encoded strings. Does someone has an example on how to save UTF-8 strings in a RTF file? Luiz ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpcmake targets and $defines

2009-12-09 Thread Roland Schaefer
Hi, do the standard targets set up by fpcmake come with any defines which allow conditional compilation depending on the target (like extra code to be compiled only when doing 'make debug', for example)? If not, can I get fpcmake to insert defines for such symbols into the generated Makefile someho

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Andreas Schneider
Am Mittwoch 09 Dezember 2009 15:26:11 schrieb Graeme Geldenhuys: > But clearly this language relationship is a very one-sided thing. We use > their (C/C++) libraries, they don't use ours. :-( Just look at the QT bindings. The LCL can't simply use QT, it has to use a wrapper library that flattens

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Michael Van Canneyt
On Wed, 9 Dec 2009, Graeme Geldenhuys wrote: Michael Van Canneyt wrote: I could not say it more concise as this, Marco wrapped it up nicely. Like I said in a earlier reply, I don't want to add any more work to my already long todo list. I just thought if it was something quick and easy to

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: > > I could not say it more concise as this, Marco wrapped it up nicely. Like I said in a earlier reply, I don't want to add any more work to my already long todo list. I just thought if it was something quick and easy to do, then it would be nice to allow languages li

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Jonas Maebe
On 09 Dec 2009, at 15:22, Graeme Geldenhuys wrote: Out of curiosity I tried, but I can't find any 'unstripped' .so files on my Linux system. So Midnight Commander doesn't show me anything, other than what architecture the .so file is. A dynamic library cannot be completely stripped, becau

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Graeme Geldenhuys
Marco van de Voort wrote: > > You see mangled names, exactly what you would see if you did this on a C++ > .so. IOW this dll is not flattened. > > Do this on a C dll to see the difference. Out of curiosity I tried, but I can't find any 'unstripped' .so files on my Linux system. So Midnight Comma

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Michael Van Canneyt
On Wed, 9 Dec 2009, Marco van de Voort wrote: In our previous episode, Graeme Geldenhuys said: 2. Since FPGui is object oriented, it will be unusable unless you devise a 'flat' API. Is't there a way the FPC compiler can automatically flatten object oriented code? No. As a test I crea

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > 2. Since FPGui is object oriented, it will be unusable unless you devise > >a 'flat' API. > > Is't there a way the FPC compiler can automatically flatten object oriented > code? No. > As a test I created a new library project and included

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: > > 2. Since FPGui is object oriented, it will be unusable unless you devise >a 'flat' API. Is't there a way the FPC compiler can automatically flatten object oriented code? As a test I created a new library project and included the fpgui_toolkit.pas unit which con

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Jonas Maebe
On 09 Dec 2009, at 14:30, Michael Van Canneyt wrote: On Wed, 9 Dec 2009, Graeme Geldenhuys wrote: Is it possible, or is there something special that needs to be done to create a library that could be used by other languages? For example. I'm interested in created a library (.dll and .so) o

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: > > 1. Not without package support. What exactly does that mean? In Lazarus I can go "File > New... > Library" which is a package that compiles to a .so file under Linux. > 2. Since FPGui is object oriented, it will be unusable unless you devise >a 'flat' API. Ah

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Jonas Maebe
On 09 Dec 2009, at 14:23, Graeme Geldenhuys wrote: Is it possible, or is there something special that needs to be done to create a library that could be used by other languages? Just make sure that the exported routines a) are declared as cdecl or stdcall (depending on platform requirements)

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Michael Van Canneyt
On Wed, 9 Dec 2009, Graeme Geldenhuys wrote: Hi, Is it possible, or is there something special that needs to be done to create a library that could be used by other languages? For example. I'm interested in created a library (.dll and .so) of fpGUI Toolkit, so the library can be reused by ot

[fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Graeme Geldenhuys
Hi, Is it possible, or is there something special that needs to be done to create a library that could be used by other languages? For example. I'm interested in created a library (.dll and .so) of fpGUI Toolkit, so the library can be reused by other fpGUI based applications (reducing deployment

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-09 Thread Henry Vermaak
2009/12/9 Marco van de Voort : > In our previous episode, Dariusz Mazur said: >> Its not for me, I pass through crosscompiling,  but I want to make it >> simpler, > > As this thread clearly demonstrates, the problem with crosscompiling is > understand what happens, and diagnose problems. Not typing

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-09 Thread Marco van de Voort
In our previous episode, Dariusz Mazur said: > Its not for me, I pass through crosscompiling, but I want to make it > simpler, As this thread clearly demonstrates, the problem with crosscompiling is understand what happens, and diagnose problems. Not typing when adding parameters. On the contra

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-09 Thread Jonas Maebe
On 09 Dec 2009, at 10:35, Dariusz Mazur wrote: Jonas Maebe pisze: On 08 Dec 2009, at 23:25, Dariusz Mazur wrote: By the way: when XR path is set then XP should be default, but its not -XP is set by /etc/fpc.cfg if the source cpu is different from the target CPU, and if the source and t

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-09 Thread Dariusz Mazur
Jonas Maebe pisze: On 08 Dec 2009, at 23:25, Dariusz Mazur wrote: By the way: when XR path is set then XP should be default, but its not -XP is set by /etc/fpc.cfg if the source cpu is different from the target CPU, and if the source and target OS are not both Darwin (because on Mac

Re: [fpc-pascal] wiki server - dead?

2009-12-09 Thread Jonas Maebe
On 09 Dec 2009, at 09:47, Peter W A Wood wrote: On 8 Dec 2009, at 18:28, Benedikt Schindler wrote: Is it just me, or is the wiki.freepascal.org server down? I was able to access it at 08:46 UTC 9/12/2009. It was down for quite a while yesterday, when the above message was sent. The messa

Re: [fpc-pascal] wiki server - dead?

2009-12-09 Thread Graeme Geldenhuys
Must be you. I'm accessing it now, without problems. Graeme. 2009/12/8 Benedikt Schindler : > Is it just me, or is the wiki.freepascal.org server down? > ___ > fpc-pascal maillist  -  fpc-pas...@lists.freepascal.org > http://lists.freepascal.org/mailma

Re: [fpc-pascal] wiki server - dead?

2009-12-09 Thread Peter W A Wood
I was able to access it at 08:46 UTC 9/12/2009. On 8 Dec 2009, at 18:28, Benedikt Schindler wrote: > Is it just me, or is the wiki.freepascal.org server down? > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/

[fpc-pascal] wiki server - dead?

2009-12-09 Thread Benedikt Schindler
Is it just me, or is the wiki.freepascal.org server down? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal