I'm having an error called "[Error] ld returned 1 exit status", I'm using DEVC ++ compiler, as soon as I put the SQLITE3.h include to start giving this error, the Code is taken from an example I found in this community. Please help me ...
My code - >
#include <stdio.h>
#include <sqlite3.h>
int main(int argc, char* argv[])
{
sqlite3 *db;
char *zErrMsg = 0;
int rc;
rc = sqlite3_open("test.db", &db);
if( rc ) {
fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db));
return(0);
} else {
fprintf(stderr, "Opened database successfully\n");
}
sqlite3_close(db);
}