Re: [sqlite] running sqlite with gcc C, continuation.....

2009-02-25 Thread mrobi002
Thank you very much it works fine Michael > Hi, > > you have to compile sqlite3.c, using something like > > gcc -c sqlite3.c > > making an object file, and then linking it to your own program. > Your call combines compiler and linker using only your own source file. > > Also, it should not be

Re: [sqlite] running sqlite with gcc C, continuation.....

2009-02-25 Thread Martin Engelschalk
Hi, you have to compile sqlite3.c, using something like gcc -c sqlite3.c making an object file, and then linking it to your own program. Your call combines compiler and linker using only your own source file. Also, it should not be necessary to define sqlite3_open and sqlite3_close (or any

[sqlite] running sqlite with gcc C, continuation.....

2009-02-25 Thread mrobi002
Sorry, Maybe I should have included the following details: This is the program: #include #include #include int sqlite3_open( const char *filename, /* Database filename (UTF-8) */ sqlite3 **ppDb /* OUT: SQLite db handle */ ); int sqlite3_close(sqlite3 *); int main() {