I have downloaded SQLite C/C++ interface to work with Cocos2d-x. Created a database by Firefox SQLite plugin. Then tried the following code
// sqlite implementation
sqlite3 *db;
if(sqlite3_open("testdb.sqlite",&db) == SQLITE_OK){
NSLog(@"Opened db Successfully");
} else {
NSLog(@"Failed to open");
}
Output is # Failed to open
How to solve the issue?