You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compile tool is a rather low-level command. From its doc:
Compile, typically invoked as “go tool compile,” compiles a single Go
package comprising the files named on the command line. It then writes a
single object file named for the basename of the first source file with a .o
suffix.
It doesn't know how to find and link multiple packages. build does.
go version: 1.12
What did you do?
go.mod
main.go
bar/bar.go
# go tool compile -S -l main.go &> main.s
What did you expect to see?
The golang assembly of main.go
What did you see instead?
main.go:3:8: can't find import: "github.com/user/foo/bar"
The text was updated successfully, but these errors were encountered: