diff options
Diffstat (limited to 'boost')
-rw-r--r-- | boost/README | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/boost/README b/boost/README index 6a86b28..64942bb 100644 --- a/boost/README +++ b/boost/README @@ -25,7 +25,7 @@ employee.sql These files are generated by the ODB compiler from employee.hxx using the following command line: - odb -d <database> -p boost --generate-schema --generate-query \ + odb -d <database> --profile boost --generate-schema --generate-query \ --generate-session employee.hxx Where <database> stands for the database system we are using, for example, @@ -52,6 +52,15 @@ driver.cxx the driver performs a few database queries which use data members of the various Boost value types in their 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 employee-odb.cxx +c++ -DDATABASE_MYSQL -c driver.cxx +c++ -o driver driver.o employee-odb.o -lodb-boost -lodb-mysql -lodb \ +-lboost_date_time + 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 |