New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/link: ld: library not found for -ltest #20847
Comments
@ALTree sorry about that |
@Shashwatsh but are you building the c library with |
wait! i have to first build the C library sorry i thought cgo would do that for me |
let me try that |
How do i generate cgo header files? |
That's likely the problem. Let's take this discussion somewhere else (the go project does not use the issue tracker for general discussion and questions about the language, it's just for issues). See: https://github.com/golang/go/wiki/Questions. For example golang-nuts. Thanks. I don't think there's a bug here: you just need help with understanding cgo.
Remove that |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.8.3
What operating system and processor architecture are you using (
go env
)?darwin/amd64 (MacOS)
What did you do?
I'm trying to build a daemon in Go and partly C
every time I try to compile ld throws an error
main.go
test.c
test.h
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
well...a compiled application with no errors
What did you see instead?
The text was updated successfully, but these errors were encountered: