Scarab  v2.11.1
Project 8 C++ Utility Library
main.cpp
Go to the documentation of this file.
1 #include <pybind11/pybind11.h>
2 namespace py = pybind11;
3 
4 PYBIND11_MODULE(test_cmake_build, m) {
5  m.def("add", [](int i, int j) { return i + j; });
6 }
glibc defines I as a macro which breaks things, e.g., boost template names
Definition: attr.h:15
PYBIND11_MODULE(test_cmake_build, m)
Definition: main.cpp:4