c and sqlite
Pages: 1 2
Chris Mahoney (1684) 2165 posts |
Argh! OK, what about this precompiled one? Just saw your edit. Hooray! :) Now, is there enough there to figure out what’s wrong with your own code? |
Michael Grunditz (8594) 259 posts |
I didn’t do sqlite3_initialize(); |
Paolo Fabio Zaino (28) 1882 posts |
Yup, I can confirm that this is the issue. Thanks! :) JFYI, the GCC library port doesn’t requires sqlite3_initialize(). I am mentioning this here for reference for the future, given we actually have two different ports… |
Chris Mahoney (1684) 2165 posts |
I’ve updated the “Notes” section in the other thread accordingly. I suspect that the other build isn’t defining SQLITE_OMIT_AUTOINIT, and therefore it’s initialising the library automatically. The SQLite devs recommend defining it, so I do. |
Michael Grunditz (8594) 259 posts |
I need to revisit this topic.. I am running out of ideas.. Does sqlite need some special treatment for file paths? |
Chris Gransden (337) 1207 posts |
Versions after 3.19.4 have that problem with gccsdk. This version can be downloaded from here for static libraries and here for shared libraries. |
Michael Grunditz (8594) 259 posts |
Thanks.. I use new gcc , but managed to compile. It works. |
Pages: 1 2