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

Building the KNN Example as a static linked executable fails #270

Open
debugaftercoffee opened this issue Nov 24, 2021 · 0 comments
Open

Comments

@debugaftercoffee
Copy link

I am trying to build the Example KNN Classifier using CGO_ENABLE=0 so the executable is statically linked, but it fails with the error below. If I use change CGO_ENABLE=1 instead, then it builds properly. How do I build this app as a statically linked executable.

env CGO_ENABLED=0 go build -v

os/user
archive/tar
github.com/sjwhitworth/golearn/base
github.com/sjwhitworth/golearn/knn
# github.com/sjwhitworth/golearn/knn
../../go/pkg/mod/github.com/sjwhitworth/[email protected]/knn/knn.go:132:15: KNN.optimisedEuclideanPredict undefined (type *KNNClassifier has no field or method optimisedEuclideanPredict)
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

1 participant