[fpc-pascal] lmysqlclient not found again while compile in fedora 7

2007-09-25 Thread Andi Purwito
Sorry, i mean that i have made a symbolic link to /usr/lib/mysql/libmysqlclient_r.so.15.0.0 as lmysqlclient. But compiler said lmysqlclient not found. And then in separately, another one to /usr/lib/mysql/libmysqlclient.so.15.0.0, there's still not found. Until final i am confused because there

Re: [fpc-pascal] lmysqlclient not found again while compile in fedora 7

2007-09-25 Thread Jonas Maebe
On 25 Sep 2007, at 04:37, Andi Purwito wrote: Sorry, i mean that i have made a symbolic link to /usr/lib/mysql/ libmysqlclient_r.so.15.0.0 as lmysqlclient. You should not make these symlinks manually. These should be made automatically when installing the "-dev" versions of the rpm/deb/ wh

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-09-25 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: This is another test program that shows my problem with fork: as soon as I start the thread, the main program stops working (the thread *is* running, you can put a writeln in its loop to show it). Note that in this short example I

[fpc-pascal] defining record at runtime

2007-09-25 Thread Marc Santhoff
Hi, would it be possible to set up a memory structure according to fpc's aligning rules that will be accepted as a record typed variable? Or does fpc create some informational support items that would miss in this case? I'm in doubt, since it is normally not possible (AFAIK, tell me if this is wr

Re: [fpc-pascal] defining record at runtime

2007-09-25 Thread Jonas Maebe
On 25 Sep 2007, at 11:49, Marc Santhoff wrote: would it be possible to set up a memory structure according to fpc's aligning rules that will be accepted as a record typed variable? Or does fpc create some informational support items that would miss in this case? I'm in doubt, since it is no

[fpc-pascal] FPU Configuration inside a library

2007-09-25 Thread Adrian Veith
Hi, i posted this already under a differnt subject, but didn't get a feedback. A .dll written in fpc changes the configuration of the FPU (FPUCW). This might cause a strange behavior inside the loading program. If the loading program allows division by zero (1.0 / 0.0), it will crash after t

Re: [fpc-pascal] lmysqlclient not found again while compile in fedora 7

2007-09-25 Thread Joost van der Sluis
I've found how Fedora handles this: edit /etc/ld.so.conf.d/mysqlclient14-i386.conf (-x86_64 for 64 bit) and change it to (for example) /lib/mysql4/mysql Then run ldconfig. If you want to link statically, you'll need the -dev-package. Note that this has nothing to do with fpc, but it's a fedora i

Re: [fpc-pascal] FPU Configuration inside a library

2007-09-25 Thread Michael Van Canneyt
On Tue, 25 Sep 2007, Adrian Veith wrote: > Hi, > > i posted this already under a differnt subject, but didn't get a feedback. > > A .dll written in fpc changes the configuration of the FPU (FPUCW). This might > cause a strange behavior inside the loading program. > > If the loading program al

Re: [fpc-pascal] defining record at runtime

2007-09-25 Thread Marc Santhoff
Am Dienstag, den 25.09.2007, 11:56 +0200 schrieb Jonas Maebe: > On 25 Sep 2007, at 11:49, Marc Santhoff wrote: > > > would it be possible to set up a memory structure according to fpc's > > aligning rules that will be accepted as a record typed variable? Or > > does > > fpc create some informati

Re: [fpc-pascal] defining record at runtime

2007-09-25 Thread Leonardo M. Ram
An aproximation of what you want to accomplish is the usage of classes (descendants of TPersistent) with published properties accesed using RTTI. The "visible" fields you want to access are these published properties, all other information and methods can't be accessed using RTTI. TCustomer = c

Re: [fpc-pascal] defining record at runtime

2007-09-25 Thread Marc Santhoff
Am Dienstag, den 25.09.2007, 19:59 -0700 schrieb Leonardo M. RamX: > An aproximation of what you want to accomplish is the usage of classes > (descendants of > TPersistent) with published properties accesed using RTTI. The > "visible" fields you want to access > are these published properties, all

[fpc-pascal] more questions on storage

2007-09-25 Thread Marc Santhoff
Hi, having this definition: {$mode objfpc} {$longstrings on} type cmpstr = record ID: integer; Name: string; Value: single; end; var buf: array [0..MAX] of cmpstr; How does the memory layout of the buffer look like? I tri