SQLite: error: C1083: cannot open include file: 'sqlite3.h'
I am following this tutorial on how to implement SQLite in c\c++. However,
when compiling the following code:
#include <stdio.h>
#include <sqlite3.h>
int main(int args, char* argv[]){
sqlite *db;
char *zErrMsg = 0;
int rc;
rc = sqlite3_open("database_1.db", &db);
if(rc){
fprintf(stderr, "Can't open databse: %s\n", sqlite3_errmsg(db));
exit(0);
}else{
fprintf(stderr, "Opened database successfully\n");
}
sqlite3_close(db);
}
I receive the following error: C1083: cannot open include
file:'sqlite3.h': no such file or directory.
what is the problem and how to solve it.
Note: sqlite was downloaded and installed following this guidance .
No comments:
Post a Comment