Re: [fpc-pascal]RE: SQLite Header File

2004-03-11 Thread kractor
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

Re: [fpc-pascal]RE: SQLite Header File

2004-03-03 Thread Taj Morton
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

Re: [fpc-pascal]RE: SQLite Header File

2004-03-03 Thread Marco van de Voort
> > - 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

Re: [fpc-pascal]RE: SQLite Header File

2004-03-03 Thread Peter Vreman
>> > 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 >

[fpc-pascal]RE: SQLite Header File

2004-03-03 Thread Jeff Pohlmeyer
> > 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