From 60b5ffdef2be52e519ea6fc0927c6af4fc086cc5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 10 Sep 2012 15:27:52 +0200 Subject: Describe commands necessary to manually compile and link each example --- access/README | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'access') diff --git a/access/README b/access/README index ebf27db..57ca2c7 100644 --- a/access/README +++ b/access/README @@ -39,6 +39,14 @@ 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-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 -- cgit v1.1