From 3ef58a7e0c18cc58c29e8a3c48e611adb1f58691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 4 Apr 2012 14:13:27 +0200 Subject: [PATCH] Linux compilation : remove(filename) instead of std::remove(filename) --- src/example1/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/example1/main.cpp b/src/example1/main.cpp index 02bff37..e95e655 100644 --- a/src/example1/main.cpp +++ b/src/example1/main.cpp @@ -11,6 +11,7 @@ */ #include +#include "stdio.h" #include "../SQLiteC++/Database.h" #include "../SQLiteC++/Statement.h" @@ -127,16 +128,15 @@ int main (void) db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY, value TEXT)"); int nb = db.exec("INSERT INTO test VALUES (NULL, \"test\")"); - std::cout << "INSERT INTO test VALUES (NULL, \"test\")\", returned " << nb << std::endl; - + std::cout << "INSERT INTO test VALUES (NULL, \"test\")\", returned " << nb << std::endl; + db.exec("DROP TABLE test"); } catch (std::exception& e) { std::cout << "SQLite exception: " << e.what() << std::endl; } - std::remove("test.db3"); - + remove("test.db3"); return 0; }