Open Thermi opened 3 years ago
@Thermi looks like Binder was not able to find any object/namespaces to bind. Could you please try to replace --bind mdbx
with --bind ""
and see if that make any difference? Thanks,
Also, i briefly looked at mdbx.h++ and looks like there is a lot of low level c-style functions, some of which might not be possible to bind. If above suggestion does not yield more generated code: could you please add something like struct Dummy {int a;};
inside mdbx.h++ and see if that makes any difference? (ie rare chance that none of other objects in mdbx.h++ could be bound)
Hi, I'm trying to use binder to generate python bindings for libmdbx by pointing it at its mdbx.h++ file. That doesn't work though. binder does not generate any bindings, except the python module declaration. When the cpp file is built and loaded as a Python module, only the mdbx module is available, but none of functions, classes, or enums declared in mdbx.h++.
binder is in
~/prefix/bin/
and my cmdline is the following (when CWD is~/prefix
):bin/binder -p build --annotate-includes --root-module mdbx --bind mdbx --prefix generated all_includes.hpp -- -DNDEBUG -I /usr/lib/clang/11.0.1/include/ -I/usrinclude --std=c++20
This is with the newest binder version from this repo. clang and llvm version is 11.0.1. It generates the following mdbx.cpp file (mdbx.sources contains "mdbx.cpp" and mdbx.modules is empty):