I wrote a simple test program and it is running into a problem. I
previously wrote pretty simple c programs that interface with an sqlite
file, but for some reason over the weekend the program won't want to run.
Here's the code:
#include<stdio.h>
#include<stdlib.h>
#include"sqlite.h"
int main()
{
sqlite *db;
char *errMsg=NULL;
db = sqlite_open("sqlitetest.db",0660,&errMsg);
sqlite_close(db);
return 0;
}
It compiles just fine, but here's what happens when I try to execute the
file:
test: ../sqlite-2.8.17/src/btree.c:702: sqliteBtreeOpen: Assertion
'sizeof(ptr)==sizeof(char*)' failed.
Aborted
any ideas what is happening?
Thanks,
Keiichi