jeudi 27 juillet 2017

beginner sqlite - c++ - cant install the library

#include <stdio.h>
#include "SQLite.h"

int main() 
{
    Connection connection("Users.db");
    Execute(connection, "create table Users (Name, Age)");
    Execute(connection, "insert into Users values (?, ?)", "Jim", 27);
    for (Row const & row: Statement (connection, "select Name, Age from Users"))
    {
         printf("%s - %d\n, row.GetString(0), row.GetInt(1));
    }
}

I get the error

fatal error: 'SQLite.h' file not found

How can I solve this problem?

Aucun commentaire:

Enregistrer un commentaire