Ah, good thinking. The Apple-supplied sqlite3.h in Mac OS X (/usr/include/sqlite3.h) doesn't actually declare it (wtf?) -- although I do have it in /usr/local/include/sqlite3.h), and I'm statically linking against my own build. Which I guess is why it builds just fine. Getting the search paths to cooperate correctly in XCode is a bit of a nightmare.
Thanks! Billy On Tue, Feb 3, 2009 at 11:17 AM, Simon Davies < simon.james.dav...@googlemail.com> wrote: > 2009/2/3 Billy Gray <wg...@zetetic.net>: > > Hi all, > > > . > . > . > > #import <sqlite3.h> > > ... > > - (void) closeDb { > > // first loop thru any existing statements and kill'em > > sqlite3_stmt *pStmt; > > while( (pStmt = sqlite3_next_stmt(db, 0)) != 0 ){ > > sqlite3_finalize(pStmt); > > } > > > > int result = sqlite3_close(db); > > if (result != SQLITE_OK) { > > NSAssert1(0, @"Failed to close database, returned error code %d", > > result); > > } > > db = nil; > > } > > > > This produces two warnings for the sqlite3_next_stmt line: > > > > - Implicit declaration of sqlite3_next_stmt (which is bizarre...) > > The compiler is telling you that there is no declaration of > sqlite3_next_stmt. Have a search in sqlite3.h and see if it is lying. > > Supplementary question: are you using a version of sqlite that > implements sqlite3_next_stmt? > > Rgds, > Simon > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > -- Billy Gray wg...@zetetic.net _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users