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 the following -L/usr/local/lib -lsqlite3 > 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. >>> 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 '_sqlite3_exec'. >>> POLINK: error: Unresolved external symbol '_sqlite3_free'. >>> POLINK: fatal error: 5 unresolved external(s). >>> *** Error code: 1 *** >> >> You need to link against the sqlite library which provides those symbols. >> >> Roger >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.9 (GNU/Linux) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iEYEARECAAYFAkrGrnYACgkQmOOfHg372QSc8QCgxRY6MJbcdOsGYvy329Drb0h0 >> 39EAoN0id+k2WFyDPqO4rUuOAnFMOzC1 >> =gool >> -----END PGP SIGNATURE----- >> _______________________________________________ >> sqlite-users mailing list >> sqlite-users@sqlite.org >> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users >> >> > > -- > View this message in context: > http://www.nabble.com/Compile-test-example-problem-tp25724582p25725034.html > Sent from the SQLite mailing list archive at Nabble.com. > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= Sent from Madison, WI, United States _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users