From 8bc7bf3bd7f78c5fbefc686e404e7d38c0c36538 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 6 Jan 2026 16:36:16 +0800 Subject: [PATCH] Update bindings-cpp.md --- docs/bindings-cpp.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/bindings-cpp.md b/docs/bindings-cpp.md index 029e5e51..8971b2c6 100644 --- a/docs/bindings-cpp.md +++ b/docs/bindings-cpp.md @@ -7,6 +7,7 @@ order: 17 ## Quick Start pkpy provides a [pybind11](https://pybind11.readthedocs.io/en/stable/) compatible layer which allows users to do convenient bindings. +Header files are located in the `include/pybind11` directory. Make sure you have added `-Iinclude` to your compiler flags. To begin with, use `py::scoped_interpreter guard{}` to start the interpreter before using any Python objects. Or explicitly call `py::interpreter::initialize()` and `py::interpreter::finalize()`.