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
Error building shortest_path.go #67
Comments
What command did you run to build? Normally you would just |
I just copied the shortest_path.go file to my project and build it with my "main" package using 'go build' command. the file has the following dependencies:
which seem to be all ok... |
@internetbird In Go, you need all the files in package
those are standard packages, so no need to worry about it. Just find all these definitions
in Repeat this until it compiles. |
@gyuho , thanks. I did a GitHub search : "nodeDistanceHeap in:file" I will copy the definitions to my file and hopefully it will work. I think it is a good idea to also add the definitions to this repository... |
All definitions are defined in this repository. Go allows to separate a single package code into different files. As you find so, you just need to copy those to your project and see if it compiles. I am closing this, but if you have more questions feel free to ask here or file a new issue. Thanks! |
Hi,
When I try to build shortest_path.go, I get the following error messages:
.\shortest_path.go:54: undefined: nodeDistanceHeap
.\shortest_path.go:72: undefined: nodeDistance
.\shortest_path.go:86: undefined: nodeDistance
I couldn't find any reference to nodeDistanceHeap or nodeDistance in the project. Am I missing something?
The text was updated successfully, but these errors were encountered: