Re: [fpc-pascal] Firebird +lin32 + fpc lib udf returns garbage.

2009-06-02 Thread Coco Pascal
Jonas Maebe schreef: On 01 Jun 2009, at 21:06, Coco Pascal wrote: So, what do think? A simple module contains two simple functions. On win32 it works fine. On lin32 one function works as expected, the other returns garbage (0 or null). Is the problem linux, firebird or fpc related? I

Re: [fpc-pascal] Firebird +lin32 + fpc lib udf returns garbage.

2009-06-01 Thread Coco Pascal
Jonas Maebe wrote: On 01 Jun 2009, at 14:39, Coco Pascal wrote: But if I add the following function it returns wrong results. This one does refer to other code. function Y_Odd(const AValue: LongInt): LongInt; cdecl; export; begin if Odd(AValue) then Result := -1 else Result := 0; end; It

Re: [fpc-pascal] Firebird +lin32 + fpc lib udf returns garbage.

2009-06-01 Thread Coco Pascal
Jonas Maebe wrote: On 01 Jun 2009, at 12:30, Jonas Maebe wrote: On 01 Jun 2009, at 11:40, Coco Pascal wrote: It looks as if the code isn't executed at all. Maybe Firebird requires PIC. That is extremely unlikely (I'd say "impossible", but that's dangerous). Wheth

Re: [fpc-pascal] Firebird +lin32 + fpc lib udf returns garbage.

2009-06-01 Thread Coco Pascal
Jonas Maebe schreef: On 01 Jun 2009, at 11:40, Coco Pascal wrote: It looks as if the code isn't executed at all. Maybe Firebird requires PIC. That is extremely unlikely (I'd say "impossible", but that's dangerous). Whether or not the code in the library is

Re: [fpc-pascal] Firebird +lin32 + fpc lib udf returns garbage.

2009-06-01 Thread Coco Pascal
Coco Pascal schreef: If I build a library with udf functions for Firebird tests with an fpc app calling those routines works fine. However with Firebird module and entrypoint are found but garbage is returned. function vv(const AValue: LongInt): LongInt; cdecl; export; begin Result := AValue

Re: [fpc-pascal] How to call lib routines with cdecl calling convention with win32 app?

2009-05-31 Thread Coco Pascal
Jonas Maebe schreef: On 31 May 2009, at 20:05, Coco Pascal wrote: I tried function Y_Odd(const AValue: Int64): LongInt; cdecl; alias: '_Y_Odd'; export; and function Y_Odd(const AValue: Int64): LongInt; cdecl; alias: '__Y_Odd'; export; but still I get the message entrypo

Re: [fpc-pascal] How to call lib routines with cdecl calling convention with win32 app?

2009-05-31 Thread Coco Pascal
Jonas Maebe schreef: On 31 May 2009, at 15:28, Coco Pascal wrote: Marco van de Voort schreef: In our previous episode, Coco Pascal said: I have a library with udf routines using the cdecl calling convention, required by Firebird. This seems to work well on win32. How exactly

[fpc-pascal] Firebird +lin32 + fpc lib udf returns garbage.

2009-05-31 Thread Coco Pascal
If I build a library with udf functions for Firebird tests with an fpc app calling those routines works fine. However with Firebird module and entrypoint are found but garbage is returned. function vv(const AValue: LongInt): LongInt; cdecl; export; begin Result := AValue; end; declare externa

Re: [fpc-pascal] How to call lib routines with cdecl calling convention with win32 app?

2009-05-31 Thread Coco Pascal
Marco van de Voort schreef: In our previous episode, Coco Pascal said: I have a library with udf routines using the cdecl calling convention, required by Firebird. This seems to work well on win32. How exactly? ? function Y_Odd(const AValue: Int64): LongInt; cdecl; export; begin

[fpc-pascal] How to call lib routines with cdecl calling convention with win32 app?

2009-05-30 Thread Coco Pascal
I have a library with udf routines using the cdecl calling convention, required by Firebird. This seems to work well on win32. However when I test these routines with a fpc win32 app declaring external functions with the cdecl or stdcall calling convention gives me a 'entrypoint not found' error

Re: [fpc-pascal] undefined reference to `fpc_geteipasebx'

2009-05-30 Thread Coco Pascal
Jonas Maebe schreef: Or maybe one of your source files contains {$pic+}. Indeed, the library project contained -fPIC as custom option. I didn't put it there. Removing it resulted in 'symbols not found: memory hausted'. The message when -Cg- was set. I took a fresh clean library project and b

Re: [fpc-pascal] undefined reference to `fpc_geteipasebx'

2009-05-29 Thread Coco Pascal
Marco van de Voort schreef: In our previous episode, Coco Pascal said: Jonas Maebe wrote: Don't use -Cg, it doesn't work yet for Linux/i386. I searched the Lazarus Compiler Options dialog but didn't find this parameter. What should I do? It enabled PIC

Re: [fpc-pascal] undefined reference to `fpc_geteipasebx'

2009-05-28 Thread Coco Pascal
Jonas Maebe wrote: Don't use -Cg, it doesn't work yet for Linux/i386. I searched the Lazarus Compiler Options dialog but didn't find this parameter. What should I do? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasc

[fpc-pascal] undefined reference to `fpc_geteipasebx'

2009-05-28 Thread Coco Pascal
When compiling a test program statically linking a shared module on fc10 i386 I get the following messages: testlibyfbudfunit.pas:60: undefined reference to `Y_Odd' ./libyfbudf.so: undefined reference to `fpc_geteipasebx' testlibyfbudf.lpr(20,1) Error: Error while linking testlibyfbudf.lpr(20,1)

Re: [fpc-pascal] Internal error 200502052

2009-05-26 Thread Coco Pascal
Coco Pascal wrote: I get an internal error 200502052 when building a library on fc10 with lazarus 0.9.26.2/fpc 2.2.2 and a recent nightly build with fpc 2.2.4. It is raised by the following procedure from aasmtai.pas: procedure tai_cpu_abstract.loadref(opidx:longint;const r:treference

[fpc-pascal] Internal error 200502052

2009-05-25 Thread Coco Pascal
I get an internal error 200502052 when building a library on fc10 with lazarus 0.9.26.2/fpc 2.2.2 and a recent nightly build with fpc 2.2.4. It is raised by the following procedure from aasmtai.pas: procedure tai_cpu_abstract.loadref(opidx:longint;const r:treference); begin alloca

Re: [fpc-pascal] ann: new pascal magazine

2008-04-07 Thread Coco Pascal
Bee schreef: Hi all, There is a new pascal magazine at http://www.blaisepascal.eu/ It might a good place to promote FreePascal and its technologies, e.g. - fpc features and supported platforms - lazarus IDE - lazarus components - mobile programming (wince, symbian) - macOS support - web framew

Re: [fpc-pascal] Installing FPC on CentOS 5 x64

2007-10-28 Thread Coco Pascal
Paulo Estrela schreef: Hi, I was trying to install fpc 2.2.0 on a CentOS 5 x64 machine using rpm package, but libtinfo.so.5 is required. My system doesn`t have this lib and I didn`t find anything on Internet related to this. Anyone with same problem or any idea? I'm running FPC 2.2.0 on CentO

Re: [fpc-pascal] msedb and fcl-db benchmarks

2007-07-17 Thread Coco Pascal
Joost van der Sluis wrote: On Tue, 2007-07-17 at 19:58 +0200, Coco Pascal wrote: Joost van der Sluis wrote: Discussion: What tests could I do more? Is there something I overlooked? To me it seems that benchmark tests on 10 records are missing relevance more and more

Re: [fpc-pascal] msedb and fcl-db benchmarks

2007-07-17 Thread Coco Pascal
Daniƫl Mantione wrote: Op Tue, 17 Jul 2007, schreef Coco Pascal: Joost van der Sluis wrote: Discussion: What tests could I do more? Is there something I overlooked? To me it seems that benchmark tests on 10 records are missing relevance more and more. I'm interest

Re: [fpc-pascal] msedb and fcl-db benchmarks

2007-07-17 Thread Coco Pascal
Joost van der Sluis wrote: Discussion: What tests could I do more? Is there something I overlooked? To me it seems that benchmark tests on 10 records are missing relevance more and more. I'm interested in responsiveness in n-tier solutions: opening connection - begin transaction - queri

Re: [fpc-pascal] Linux-64 distro recommendation

2006-09-05 Thread Coco Pascal
Felipe Monteiro de Carvalho wrote: On 9/5/06, Coco Pascal <[EMAIL PROTECTED]> wrote: Nobody? In that case you could test Mandriva 2006 for x86_64 Will do. Can I make "pure" 64 bits builds on a 32 bits platform? You want to cross compile from 32 bits to 64 bits If "c

Re: [fpc-pascal] Linux-64 distro recommendation

2006-09-05 Thread Coco Pascal
Coco Pascal wrote: Hello, Any recommendation regarding free linux 64 bits desktop and server distros? Its completely new to me. Nobody? I haven't been able yet to install Ubuntu-64 or openSUSE-64 on my machine. Can I make "pure" 64 bits builds on a 3

[fpc-pascal] Linux-64 distro recommendation

2006-09-03 Thread Coco Pascal
Hello, Any recommendation regarding free linux 64 bits desktop and server distros? Its completely new to me. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal