> Or is there some other init function that can be called to maintain it in
> one file?
I don't know about that. However, I can see two approaches you could use to
keep them in the same file:
(1) Since your main is at the bottom of the file, right before it (just
after #ifdef MAIN, say), add
Yup...putting the main in a separate file fixed it.
Thanks.
Or is there some other init function that can be called to maintain it in one
file?
Michael D. Black
Senior Scientist
Advanced Analytics Directorate
Advanced GEOINT Solutions Operating Unit
Northrop Grumman Information
> But it segfaults on me at sqlite3_open() and I can't figure out why...there's
>no stack info.
That's because you have it in the same file that sqlite3ext.h is included in,
and the call to sqlite3_open() is really to sqlite3_api->open(), but since you
haven't executed SQLITE_EXTENSION_INIT2
3 matches
Mail list logo