c-for-go icon indicating copy to clipboard operation
c-for-go copied to clipboard

Automatic C-Go Bindings Generator for Go Programming Language

Results 81 c-for-go issues
Sort by recently updated
recently updated
newest added

Hello, Thanks for creating this great tool. I'm creating a binding for [Soundpipe](https://github.com/PaulBatchelor/Soundpipe). I was just wondering, the library has a function called: ```int sp_process_plot(sp_data *sp, void *ud, void (*callback)(sp_data...

When define struct in c and it has callback as member *c-for-go* generate file `cgo_helper.go` that no definition of `PassRef` and `NewRef` for callback Reproduce: **header file** gh.h ```c #ifndef...

Hello, I am trying to write bindings for [imgui](https://github.com/ocornut/imgui) ([cimgui](https://github.com/Extrawurst/cimgui)) but I run in all kinds of problems, and I'm not sure what I'm doing wrong. [Here](https://github.com/Xzya/go-imgui) is my code,...

I found this issue trying to wrap a library that returns a pointer to allocated memory through an `unsigned char**` parameter, and boiled it down to the following minimal sample:...

More specifically, I need this library to resolve the following issue: "could not determine kind of name for C.uint32_t" Can someone help?

I'm making bindings for [Steam Audio](https://valvesoftware.github.io/steam-audio/). It has few callback functions which have void pointer arguments. On compiling I get the following errors: ``` In file included from _cgo_export.c:3:0: cgo-gcc-export-header-prolog:46:45:...

Would be nice to be able to dump all errors, to address them at once.

There are several places where the Go identifiers used for types that are effectively the same (differ only in that one is a typedef for the other) will deviate, causing...

@CtrlZvi Unfortunately this pull request https://github.com/xlab/c-for-go/pull/31 has messed hard with all typedefs, see https://github.com/xlab/pocketsphinx-go/issues/9 So I'm leaving this issue open until a proper solution will be found.

Forward declared (incomplete) structs will never have a type created for them in Go. This leads to generated code that cannot be compiled. I think it makes sense to generate...