-
I am following the guide here https://ebpf-go.dev/guides/getting-started/ hbina@akarin ~/D/test-bpf (main) [1]> go env CGO_ENABLED (base)
1
hbina@akarin ~/D/test-bpf (main)> go build (base)
package main: C source files not allowed when not using cgo or SWIG: counter.c |
Beta Was this translation helpful? Give feedback.
Answered by
lmb
Jun 12, 2024
Replies: 1 comment 1 reply
-
You're probably missing |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
florianl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're probably missing
//go:build ignore
incounter.c
. See the little pop out in the getting started guide which explains why that is necessary.