python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
CGo tests with a DLL
I'm currently using CGO to use a library in C through a DLL.
Everything works and I can use my code on top of the library, build it & so on.
The problem I have is to implement tests with a DLL. Ri...
Otor
Votes: 0
Answers: 1
Cgo: undefined reference to [C function]
I'm running a go program in a docker container (golang:1.18-bullseye).
I haev tried running it both with go run main.go and go run .
My code looks likes this, both header files are located in the Incl...
Jessica Chambers
Votes: 0
Answers: 1
How do I pass a Go callback (function ptr) from Go to Rust via CGo?
I have:
A Rust library that is compiled to a static C library
A Go program that calls the Rust library's API via CGo
I wish to pass a Go function (as callback) to the Rust code, so it will be able t...
Magmus
Votes: 0
Answers: 1
CGO: Cross compile from mac/windows to linux amd64 with cgo_enabled = 1
I target a project with the use of gosseract to cross compile, which need to have CGO_ENABLE=1. After a lot of tries I ended up compiling Mac and Windows native. Mac on my laptop and Windows in a fore...
Jonny
Votes: 0
Answers: 1