cpp_bindgen icon indicating copy to clipboard operation
cpp_bindgen copied to clipboard

Library for generating C and Fortran bindings for C++ functions from C++

Results 11 cpp_bindgen issues
Sort by recently updated
recently updated
newest added

Hallo, I am trying this tool to generate a C interface for our C++ project. I followed the manual and added this to the makefile: > include(FetchContent) > FetchContent_Declare( >...

I got the following warning with gcc 9, didn't look into the problem, but could be a problem in cpp_bindgen: ``` cosmo/dycore/src/dycore/Bindings/dycore_base_bindings_float.h:125:6: warning: ‘gt_tracer_add_metainfo0’ violates the C++ One Definition Rule...

In a line line this https://github.com/GridTools/cpp_bindgen/blob/d0b4b216f141da90f8534356cccbb59423667e8f/include/cpp_bindgen/common/any_moveable.hpp#L61 it turns out the overhead can be 20x more than a regular function call. Could this be improved for the case of low-latency applications?

This is mostly meant as a discussion, as I don't know if this functionality is possible / simple to implement. Currently the generated Fortran bindings have generic argument names `arg`:...

Currently, when returning a complex type to Fortran `cpp_bindgen` always returns `bindgen_handle *` as `type(c_ptr)` in Fortran. As a result, the actual type of the Fortran object is unknown and...

In GHEX we need to pass a callback function from Fortran to the C++ library. The Fortran-C interface allows us to do this with the `type(c_funptr)` type, e.g.: ``` [...]...

There is [bcp](https://www.boost.org/doc/libs/1_70_0/tools/bcp/doc/html/index.html) to extract libraries from boost which allows also changing the namespace to avoid collisions with other boost libraries used in user-code. However, I don't think it is...

question

When the user has Fortran enabled, the bindings will be build which will produce a .mod file. This module file will be placed in the CMAKE_CURRENT_BINARY_DIR (default). If the user...

cpp_bindgen does not compile anything, but just installs sources which are then (automatically) compiled by the user. In the case where the user uses FetchContent, the install target of cpp_bindgen...