aboutsummaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/README8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/README b/view/README
index 4c30ad2..0ade8ea 100644
--- a/view/README
+++ b/view/README
@@ -52,6 +52,14 @@ driver.cxx
'employee' objects. Once this is done, the driver uses views defined in
employee.hxx to load and print various information about the object model.
+To compile and link the example manually from the command line we can use
+the following commands (using MySQL as an example; replace 'c++' with your
+C++ compiler name):
+
+c++ -c employee-odb.cxx
+c++ -DDATABASE_MYSQL -c driver.cxx
+c++ -o driver driver.o employee-odb.o -lodb-mysql -lodb
+
To run the example we may first need to create the database schema (for some
database systems, such as SQLite, the schema is embedded into the generated
code which makes this step unnecessary). Using MySQL as an example, this