diff --git a/docs/basics.rst b/docs/basics.rst index c4db8f753..65109b2b0 100644 --- a/docs/basics.rst +++ b/docs/basics.rst @@ -117,7 +117,7 @@ example can be compiled using the following command .. code-block:: bash - $ c++ -O3 -shared -std=c++11 -I /include `python-config --cflags --libs` example.cpp -o example.so + $ c++ -O3 -shared -std=c++11 -I /include `python-config --cflags --ldflags --libs` example.cpp -o example.so In general, it is advisable to include several additional build parameters that can considerably reduce the size of the created binary. Refer to section