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