Closed KnisterPeter closed 1 year ago
sorry, not a supported thing see ex https://stackoverflow.com/questions/32938558/cgo-cant-find-way-to-use-callbacks-with-const-char-argument https://stackoverflow.com/questions/63207929/unable-to-export-go-function-with-const-c-char-parameter
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compiling this with
go build -buildmode=c-shared -o pam_module.so
What did you expect to see?
This is expected to compile to a shared library
What did you see instead?
It fails with the following compiler error: