[sqlite] Compile test example problem

2009-10-02 Thread David Morris
I am using Pelles C 6.00.4 for Windows on Vista. It doesn't compile and any help would be appreciated. /**See also the Introduction To The SQLite C/C++ Interface for an introductory overview and roadmap to the dozens of SQLite interface functions.**/ #include stdio.h #include sqlite3.h static

Re: [sqlite] Compile test example problem

2009-10-02 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Morris wrote: Building sqliteFirst.obj. Building SQLiteFirst.exe. POLINK: error: Unresolved external symbol '_sqlite3_open'. POLINK: error: Unresolved external symbol '_sqlite3_errmsg'. POLINK: error: Unresolved external symbol

Re: [sqlite] Compile test example problem

2009-10-02 Thread Jean-Christophe Deschamps
Gidday, Building sqliteFirst.obj. Building SQLiteFirst.exe. POLINK: error: Unresolved external symbol '_sqlite3_open'. POLINK: error: Unresolved external symbol '_sqlite3_errmsg'. POLINK: error: Unresolved external symbol '_sqlite3_close'. POLINK: error: Unresolved external symbol

Re: [sqlite] Compile test example problem

2009-10-02 Thread David Morris
Thanks for your reply Roger, but doesn't the inclusion of the sqlite3.h file do that? If not, could you give me a better example please? David Roger Binns wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Morris wrote: Building sqliteFirst.obj. Building SQLiteFirst.exe.

Re: [sqlite] Compile test example problem

2009-10-02 Thread P Kishor
On Fri, Oct 2, 2009 at 9:01 PM, David Morris dmor5...@bigpond.net.au wrote: Thanks for your reply Roger, but doesn't the inclusion of the sqlite3.h file do that? No, you have to link against the correct library. For example, if you have your sqlite library under /usr/local/lib, you will add