c++ - SQLite Incomplete Type Error -


i'm writing c++ program uses sqlite database. line of code;

void testrun() {     // code here      sqlite3_stmt stmt;      // code here } 

i following error;

error: aggregate 'sqlite3_stmt stmt' has incomplete type , cannot defined      sqlite3_stmt stmt;                   ^ 

i'm using amalgamated sqlite source code , have "sqlite3.h" included. causes error , how can solved? i'm on windows 7 64bit, using mingw_64.

that's opaque structure known implementation. can't create instance of it, can create pointer one:

sqlite3_stmt* stmt; sqlite3_prepare(db, "select...", -1, &stmt, 0); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -