Taj Morton wrote:
It is better to include unit initc though, then including {$linklib c}
Thanks! Got it working!
Find a patch below the example
in /usr/src/fpc-1.0.10/packages/base/sqlite/test.pas
--- test.pas2004-03-03 15:41:32.0 -0800
+++ test-new.pas2004-03-03 15:42:32.000
Hi Marco,
> >
> > All bindings that bind to a C library need to include {$linklib c}. When
> > it is not there it is a bug in the binding. The {$linklib c} is required
> > to let fpc know that it needs to use special startup code.
>
> It is better to include unit initc though, then including {$link
> > - in the program file stops the error.
> >
> > I assume this lets the lib use the C routines, and
> > the FreePascal side can still use its own.
>
> All bindings that bind to a C library need to include {$linklib c}. When
> it is not there it is a bug in the binding. The {$linklib c} is requi
>> > Inconsistency detected by ld.so: dl-minimal.c: 134:
>> > realloc: Assertion `ptr == alloc_last_block' failed!)
>
>> The error you get is because you probably forgot to put 'cmem'
>> as the first unit in your program's uses clause.
>
>
> I'm not sure about SQLite, but i have seen this problem
>
> > Inconsistency detected by ld.so: dl-minimal.c: 134:
> > realloc: Assertion `ptr == alloc_last_block' failed!)
> The error you get is because you probably forgot to put 'cmem'
> as the first unit in your program's uses clause.
I'm not sure about SQLite, but i have seen this problem
using so