Add stdc++ library to example (sometimes it seems to be required).
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 12 Feb 2010 07:46:46 +0000 (23:46 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 12 Feb 2010 07:46:46 +0000 (23:46 -0800)
src/userguide/wrapping_CPlusPlus.rst

index 73fda9253f6bea9584917ced7943daa592223065..5c302fa2485ca5c84b9f55809410bb98a625c83f 100644 (file)
@@ -109,7 +109,7 @@ to add a keyword to your Extension construction statement, as in::
         ["rectangle.pyx", "Rectangle.cpp"],     # filename of our Cython source
         language="c++",              # this causes Cython to create C++ source
         include_dirs=[...],          # usual stuff
-        libraries=[...],             # ditto
+        libraries=["stdc++", ...],             # ditto
         extra_link_args=[...],       # if needed
         cmdclass = {'build_ext': build_ext}
         )