Sergey Volynkin
Sergey Volynkin

Reputation: 13

How to make C++ portable app with DataBase (SQlite)

So, I have a simple console app and I want to use DataBase in it. I want that program to be portable(I mean if I bring that program to another pc without that db engine it should work)

For example i want to work with SQLite. Will it be enough if i will add sqlite3.h in header of my program? Or I need to do something else

And one more question. What is wrappers for Sqlite ?

Upvotes: 1

Views: 418

Answers (2)

Paolo M
Paolo M

Reputation: 12757

You will be fine including sqlite3.h and compiling sqlite3.c with your project.

Upvotes: 1

  CoMargo
CoMargo

Reputation: 23

It will also require you to have a library (.so / .dll) near the binary, or you should link your application with the static library of engine.

Wrappers are some kind of functions and/or classes that makes it easier to use the main library.

Upvotes: 0

Related Questions