Hey kids, I am testing SQLite in the hope that I can use it in my program,
but I get this confusing error msg, Can anybody help?

 

Error message

~~~~~~~~~~~~

D:\dev\sqlitetest\main.cpp:14:10: error: 'sqlite3_api' was not declared in
this scope

 

Code

~~~~~

#include <iostream>

#include "sqlite/sqlite3.h"

#include "sqlite/sqlite3ext.h"

#include <glibmm/ustring.h>

int main() {

    sqlite3 *db;

    Glib::ustring dbName("sqliteTest");

    int rc;

 

    rc = sqlite3_open(dbName.c_str(), &db); // รง Error Message comes as soon
as I add this line

 

    std::cout << "Hello world!" << std::endl;

    return 0;

}

 

Thanks in advance!!

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to