summaryrefslogtreecommitdiff
path: root/odb-examples/c++11
diff options
context:
space:
mode:
Diffstat (limited to 'odb-examples/c++11')
-rw-r--r--odb-examples/c++11/README8
-rw-r--r--odb-examples/c++11/buildfile5
2 files changed, 7 insertions, 6 deletions
diff --git a/odb-examples/c++11/README b/odb-examples/c++11/README
index 7db6a44..638b9a2 100644
--- a/odb-examples/c++11/README
+++ b/odb-examples/c++11/README
@@ -27,8 +27,8 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb --std c++11 -d <database> --std c++11 --generate-schema \
- --generate-query employee.hxx
+ odb --std c++11 -d <database> --generate-schema --generate-query \
+ employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
@@ -51,8 +51,8 @@ driver.cxx
over the result printing basic 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++ -std=c++11'
-with your C++ compiler in C++11 mode):
+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
diff --git a/odb-examples/c++11/buildfile b/odb-examples/c++11/buildfile
index 5287801..e921434 100644
--- a/odb-examples/c++11/buildfile
+++ b/odb-examples/c++11/buildfile
@@ -5,10 +5,11 @@ import libodb = libodb%lib{odb}
import libs = libodb-$database%lib{odb-$database}
-exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+exe{driver}: {hxx cxx}{* -employee-odb} {hxx ixx cxx}{employee-odb} testscript
# The metadata library target which we use to extract the poptions variable
-# value for specifying the contained options on the ODB compiler command line.
+# value for specifying the preprocessor options (-I, etc) on the ODB compiler
+# command line.
#
libue{employee-meta}: $libodb