Hello,
I am trying to read data from a sqlite db.
I have added ibsqlite3.0.dylib to my Project. And have been able to open the db successfully.
Further I wanted to execute a query so I am using following code:
I am getting an error while building saying:
Am I missing something here?
I am trying to read data from a sqlite db.
I have added ibsqlite3.0.dylib to my Project. And have been able to open the db successfully.
Further I wanted to execute a query so I am using following code:
Code:
const char *sqlStatement = "select * from animals";
sqlite3_stmt *compiledStatement;
if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) {
}
I am getting an error while building saying:
Code:
"_sqlite3_prepare_v2", referenced from:
-[Controller awakeFromNib] in Controller.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (1 error)
Am I missing something here?