summaryrefslogtreecommitdiff
path: root/odb/odb.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/odb.cxx')
-rw-r--r--odb/odb.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/odb/odb.cxx b/odb/odb.cxx
index d4d719d..196329b 100644
--- a/odb/odb.cxx
+++ b/odb/odb.cxx
@@ -536,7 +536,16 @@ main (int argc, char* argv[])
// Add the standard prologue.
//
- // os << "#line 1 \"<standard-odb-prologue>\"" << endl;
+ os << "#line 1 \"<standard-odb-prologue>\"" << endl;
+
+ // Make sure ODB compiler and libodb versions are compatible.
+ //
+ os << "#include <odb/version.hxx>" << endl
+ << endl
+ << "#if ODB_VERSION != " << ODB_VERSION << endl
+ << "# error incompatible ODB compiler and runtime versions" << endl
+ << "#endif" << endl
+ << endl;
// Add custom prologue if any.
//