Skip to content
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

undefined: context #11

Closed
sambengtson opened this issue Aug 22, 2017 · 7 comments
Closed

undefined: context #11

sambengtson opened this issue Aug 22, 2017 · 7 comments

Comments

@sambengtson
Copy link

I installed the library using go get

go get github.com/fuzxxl/nfc

I'm receiving a build error that would indicate that I possibly installed the library incorrectly.

../github.com/fuzxxl/nfc/2.0/nfc/nfc.go:206: undefined: context

I tried downloading the root project directly into my GOPATH but am still experiencing the same behavior. Can you advise? I'm sure it's something dumb that I'm overlooking.

@abhishek2896
Copy link

Which Go version are you using. I don't think that if your go version is greater that 1.6 than this should be issue

@sambengtson
Copy link
Author

Sorry, I should have specified. Go1.8

@abhishek2896
Copy link

ohh that was stupid of me, this is not that issue. Let me see

@hsanjuan
Copy link

go get github.com/fuzxxl/nfc/2.0/nfc works for me...

@sambengtson
Copy link
Author

sambengtson commented Aug 22, 2017

@hsanjuan You don't see anything like this?

sam@sam-VirtualBox:~/Go/src/github.com$ go get github.com/fuzxxl/nfc/2.0/nfc
github.com/fuzxxl/nfc/2.0/nfc/nfc.go:206: undefined: context

@hsanjuan
Copy link

Ah. This happens to me when trying to compile with CGO_ENABLED=0

Try CGO_ENABLED=1. Since this library is a C binding you probably need to use CGO.

@sambengtson
Copy link
Author

@hsanjuan There we go! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants