aboutsummaryrefslogtreecommitdiff
path: root/composite/README
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-10 15:27:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-10 15:27:52 +0200
commit60b5ffdef2be52e519ea6fc0927c6af4fc086cc5 (patch)
tree49a1d8feeeab0afc2fa4cb5b403ded00e3aa9133 /composite/README
parent7d58675bad74a81489f77738fcccea9f5f20f41f (diff)
Describe commands necessary to manually compile and link each example
Diffstat (limited to 'composite/README')
-rw-r--r--composite/README8
1 files changed, 8 insertions, 0 deletions
diff --git a/composite/README b/composite/README
index 2368784..bcb72e3 100644
--- a/composite/README
+++ b/composite/README
@@ -45,6 +45,14 @@ driver.cxx
persistent. Finally, the driver performs a database query which uses a
data member from the composite value type in its criterion.
+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 person-odb.cxx
+c++ -DDATABASE_MYSQL -c driver.cxx
+c++ -o driver driver.o person-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