I am trying to call the following C function (simplified version from a C library) from Go, and I got compiler errors: typedef void device_t; void open(device_t **dev) { }
*Go Function*: func Open() { var dev C.device_t C.open(&&dev) } *Compiler (v1.17) error:* cannot use _cgo0 (type **_Ctype_void) as type *unsafe.Pointer in argument to _Cfunc_open How to fix that? Regards. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f9c57be6-d22d-40cb-9e40-e8c7bf65eef2n%40googlegroups.com.