diff options
Diffstat (limited to 'qt/sqlite/basic/driver.cxx')
-rw-r--r-- | qt/sqlite/basic/driver.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt/sqlite/basic/driver.cxx b/qt/sqlite/basic/driver.cxx index f24053a..c925f65 100644 --- a/qt/sqlite/basic/driver.cxx +++ b/qt/sqlite/basic/driver.cxx @@ -10,6 +10,8 @@ #include <cassert> #include <iostream> +#include <QtCore/QCoreApplication> + #include <odb/sqlite/database.hxx> #include <odb/sqlite/transaction.hxx> @@ -24,6 +26,8 @@ using namespace odb::core; int main (int argc, char* argv[]) { + QCoreApplication app (argc, argv); + try { auto_ptr<database> db (create_database (argc, argv)); |