foo.cpp:43:36: error: ‘insertIntoTable’ was not declared in this scope
1 2 3
//insertValue()
rc = sqlite3_prepare_v2(db, sql, strlen(sql), &stmt, &pzTest) == SQLITE_OK ; //here `rc' is a boolean
if(rc == SQLITE_OK ) //here you threat it as an error code
Also, ¿what is the justification for `rc' and `sql' to be global?