I'm writing a C++ program that uses SQLite for database. For this line of code;
void testRun()
{
// some code here
sqlite3_stmt stmt;
// some code here too
}
I get the following error;
error: aggregate 'sqlite3_stmt stmt' has incomplete type and cannot be defined
sqlite3_stmt stmt;
^
I'm using the amalgamated SQLite source code and have "sqlite3.h" included. What exactly causes this error and how can it be solved? I'm on Windows 7 64bit, using MinGW_64.