clausecker / nfc

Go bindings for the libnfc
https://pkg.go.dev/github.com/clausecker/nfc/v2
GNU Lesser General Public License v3.0
101 stars 20 forks source link

github.com\clausecker\nfc\v2@v2.1.4\nfc.go:208:17: undefined: context #14

Closed Sprite137 closed 3 months ago

Sprite137 commented 3 months ago

Hello,I get a err when I use code 'fmt.PrintIn(nfc.Version())' image I am using go-1.22.5 and have installed libnfc-1.8.0

Sprite137 commented 3 months ago

by the way, I run it on Windows10

clausecker commented 3 months ago

Greetings, do not post pictures of error messages please. Instead, post the error message as text.

clausecker commented 3 months ago

Likely a duplicate of #11. Are you compiling with cgo disabled by chance?

Sprite137 commented 3 months ago

Greetings, do not post pictures of error messages please. Instead, post the error message as text.

Thanks, I will notice it.

Sprite137 commented 3 months ago

Likely a duplicate of #11. Are you compiling with cgo disabled by chance?

OK, there we go!

clausecker commented 3 months ago

Duplicate of #11. Please enable cgo to use this library. You'll also need to install the libnfc.