summaryrefslogtreecommitdiff
path: root/doc/source/c++
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/c++')
-rw-r--r--doc/source/c++/embedding.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/source/c++/embedding.rst b/doc/source/c++/embedding.rst
index b04e0d78..754ad398 100644
--- a/doc/source/c++/embedding.rst
+++ b/doc/source/c++/embedding.rst
@@ -25,3 +25,10 @@ module ``client`` with the attribute ``hash`` which stores an object of the
type :class:`apt_pkg.HashString`:
.. literalinclude:: ../../client-example.cc
+
+
+.. highlightlang:: sh
+
+If this file were called client-example.cc, you could compile it using::
+
+ g++ -lapt-pkg -lpython2.5 -I/usr/include/python2.5 -o client client-example.cc