From: Kevin Worth <kworth@gm...> - 2006-02-24 20:30:11
I have a printf that says "Executing command" right before the call to
sqlite3_exec in the quickstart program at
http://sqlite.org/quickstart.html . That line never prints. It doesnt
print the "Can't open database: %s\n", sqlite3_errmsg(db) either, so
presumably the call to sqlite3_open() is either returning successfully
or calling exit() so it never returns. In fact, the file I try to open
(test.db) gets created every time, it just has a length of 0. There is
no error message printed, it just prints "Opening Database" (right
before the sqlite3_open call) then returns to the # prompt. Is there
something different about how the gumstix operates that would make
this example program not work? Thanks for your help.
> On Feb 21, 2006, at 12:15 PM, Kevin Worth wrote:
> > I am trying to compile the following example program from
> > http://sqlite.org/quickstart.html
> > [chop]
> > ----------------
> > I compile it in buildroot with -lsqlite3 appended so that it grabs the
> > sqlite3 libs (yes, I included the sqlite target in my buildroot
> > Makefile). It compiles fine, but then when I copy the binary and run
> > it on the gumstix it stops after the sqlite3_open() call. When I
> > compile it on x86 it works fine... Anyone have any ideas what I might
> > be doing wrong?
> > The weird thing is that the program just exits, I put a printf
> > statement directly after the sqlite3_open() call and it never
> > executes...
> More info needed her Keving -- what does "just exits" mean? Does it
> set $? to something? Does it print an error message?