diff options
Diffstat (limited to 'container/README')
-rw-r--r-- | container/README | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/container/README b/container/README index 5496047..058b001 100644 --- a/container/README +++ b/container/README @@ -38,6 +38,14 @@ driver.cxx in the database, then re-loads and prints the object to verify that the changes have been made persistent. +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 |