diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-10 15:27:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-10 15:27:52 +0200 |
commit | 60b5ffdef2be52e519ea6fc0927c6af4fc086cc5 (patch) | |
tree | 49a1d8feeeab0afc2fa4cb5b403ded00e3aa9133 /schema/custom/README | |
parent | 7d58675bad74a81489f77738fcccea9f5f20f41f (diff) |
Describe commands necessary to manually compile and link each example
Diffstat (limited to 'schema/custom/README')
-rw-r--r-- | schema/custom/README | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/schema/custom/README b/schema/custom/README index 77febef..22a14cb 100644 --- a/schema/custom/README +++ b/schema/custom/README @@ -48,6 +48,14 @@ driver.cxx and persists them in the database. Finally, the driver performs a database query and prints the information about the returned 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 employee-odb.cxx +c++ -DDATABASE_MYSQL -c driver.cxx +c++ -o driver driver.o employee-odb.o -lodb-mysql -lodb + To run the driver, using MySQL as an example, we can execute the following command: |