> -----Original Message-----
> From: Michael Gaskins [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 23, 2005 12:09 AM
> To: sqlite-users@sqlite.org
> Subject: [sqlite] Linker Error when trying to use Sqlite with GCC
> 
> I'm working on an application that will require an embedded 
> database backend and Sqlite is looking to be my prime choice here.
> 
> Now, I typically write the GUI and the working code 
> seperately anyways and tie them together later, so I figured 
> I'd begin work on my backend that talks with the database.  
> I've never actually done any previous database programming so 
> I'm learning as I go here :).
> 
> I'm having trouble getting my (very primitive) experimental 
> program to link however.  Below is my code for test.c:
> 
> #include <stdio.h>
> #include <sqlite3.h>
> 
> int main (int argc, char **argv) {
> 
>   struct sqlite *pilotLog;
>   
>   pilotLog = sqlite_open("logbook.dat", 0, NULL);
> 
>   sqlite_close(pilotLog);
> 
>   return 0;
> }
> 

Try struct sqlite3 *, sqlite3_open(), sqlite3_close() instead -- you'll find
they work much better :)

Robert




Reply via email to