mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Fix the first example in the first steps guide not compiling (#5823)
The alias of the pybind11 namespace is missing
This commit is contained in:
@@ -108,6 +108,8 @@ a file named :file:`example.cpp` with the following contents:
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
int add(int i, int j) {
|
||||
return i + j;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user