I'm trying to build a Go program where I have a required library on my system in binary form. However, go build
fails with
object is [linux amd64 go1.1.1 X:none] expected [linux amd64 go1.1.2 X:none]
I see what the immediate problem is: the static library was built with an older version of Go. How can I read that information from the .a
file directly? (I can see it with strings library.a | grep '^go object'
, but is there something that's meant to output the build string? (And, what is that string properly called?)