Looking for a sqlite3 example...
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1220 from 2003/6/17
    just a plain jane example on how to access a sqlite db in C. The stuff I wrote under Linux isnt compiling.

    Do I copy my sqlite3.h file to gg:includes? Anything else that I need to copy? What gcc options do you use to compile something that uses sqlite?
  • »14.06.13 - 03:46
    Profile Visit Website
  • Butterfly
    Butterfly
    SixK
    Posts: 72 from 2004/11/16
    TheMagicM, you can have a look at my indexer source code here :
    http://amigacommunity.free.fr/phpBB/viewtopic.php?topic=155&forum=2

    I don't remember if I use sqlite3.library shared library or libsqlite3.a static library in my source, but using sqlite3.library is just 3 lines work.

    Note that you can use any linux sqlite example, it should work the same.

    SixK
  • »15.06.13 - 08:35
    Profile Visit Website