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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
24 matches
Mail list logo