From 00f46a79c0fb59ee964f71d441e8721c1388a968 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Mon, 28 Jul 2025 10:51:54 +0800 Subject: [PATCH] Update setup.py --- 2025.07.28_programming_with_python_and_cpp/setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/2025.07.28_programming_with_python_and_cpp/setup.py b/2025.07.28_programming_with_python_and_cpp/setup.py index 729bfbe..126147e 100644 --- a/2025.07.28_programming_with_python_and_cpp/setup.py +++ b/2025.07.28_programming_with_python_and_cpp/setup.py @@ -9,6 +9,9 @@ setup( ['example.cpp'], include_dirs=[pybind11.get_include()], language='c++', + extra_link_args=[ + '-static-libstdc++', + ], ), ], ) \ No newline at end of file