[fpc-pascal]RE: SQLite Header File
    Taj Morton 
    taj at wildgardenseed.com
       
    Thu Mar  4 00:45:14 CET 2004
    
    
  
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 {$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.pas    2004-03-03 15:41:32.000000000 -0800
+++ test-new.pas        2004-03-03 15:42:32.000000000 -0800
@@ -1,6 +1,7 @@
 program test;
-uses sqlite,sqlitedb, strings,classes;
+uses sqlite,sqlitedb, strings,classes,initc;
+{$linklib c}
 var
   MySQL: TSQLite;
Thanks again!
--Taj
-- 
"Gee, Toto, I don't think we are in Kansas anymore."
    
    
More information about the fpc-pascal
mailing list