Hi,
I've just looked over the code quickly, but what I see is missing are the arguments to the "callback" function..
Code:
rc = sqlite3_exec(db, argv[2], callback, 0, &zErrMsg);
What are the errors that gcc is reporting?
P.S.: Please use the
code tag - it makes it much more easier to review your code