#include documentation #143
-
In basics.rst file, it is noted, "nanobind also provides many optional add-on components that are aren't included by default. They are discussed throughout this documentation along with pointers to the header files that must be included when using them." Later in the file, in the "Higher order functions" section, I searched through the headers, and found inline defintions for
I suspect I'm not including the right file, or not in the right order, but I can't find what I should be including. It would be helpful if the example in "basics" included the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
The
nb_*
headers aren't meant to be included manually -- they are all automatically pulled in bynanobind.h
(and in the right order). These headers are also never mentioned in the documentation. You should be able to usenb::print
after includingnanobind.h