Hello

I try to using SQLite with my ARM9 embedded Linux board
and I have some problem.
I cross-compiled sqlite3 and libsqlite3 with gcc 3.4.6 with uClibc
and here is my simple source code

int main(){
    sqlite3 *db = 0 ;
    int rc;
    char *data="./data.db"

    printf("DEBUG 1\n");
    rc = sqlite3_open(data,&db)
    if(rc){
       printf("Error !!\n");
    }
    printf("DEBUG 2\n");
    sqlite3_close(db);
    printf("DEBUG 3\n");
}

I got output only "DEBUG 1" (Testing with my PC output is DEBUG 1 ->
DEBUG 2 -> DEBUG 3 correctly)
but using sqlite3 command is working fine

I'm not sure did I do something wrong ?
Why sqlite3_open doesn't work and don't return error or anything


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

Reply via email to