aboutsummaryrefslogtreecommitdiff
path: root/pimpl
diff options
context:
space:
mode:
Diffstat (limited to 'pimpl')
-rw-r--r--pimpl/README9
1 files changed, 9 insertions, 0 deletions
diff --git a/pimpl/README b/pimpl/README
index 6460ebb..da12899 100644
--- a/pimpl/README
+++ b/pimpl/README
@@ -37,6 +37,15 @@ driver.cxx
instance. Then it executes a number of database transactions on the 'person'
objects.
+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.cxx
+c++ -c person-odb.cxx
+c++ -DDATABASE_MYSQL -c driver.cxx
+c++ -o driver driver.o person.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