Re: [go-nuts] Getting "cgo argument has Go pointer to Go pointer"

2021-11-15 Thread 'Dan Kortschak' via golang-nuts
On Mon, 2021-11-15 at 15:06 -0800, David Karr wrote: > > I'm pretty new to Go (many years in other languages). I'm trying to > use cgo to use a C library we're using. > > I have the following line of code, which is compiling (that's been > enough of a struggle): > > status = int(C.VeProtect(C.

[go-nuts] Getting "cgo argument has Go pointer to Go pointer"

2021-11-15 Thread David Karr
I'm pretty new to Go (many years in other languages). I'm trying to use cgo to use a C library we're using. I have the following line of code, which is compiling (that's been enough of a struggle): status = int(C.VeProtect(C.VeObj(fpeProtect), &argsProtect)) This is failing at runtime with