I need to compile my program - main.go with package bigPak without source. Exist only bigPak.a tnto GOPATH/pkg.
Can you give me example of compile main.go with bigPak.a ?
package bigPak
Go is designed to be able to compile from the .a files without transitively reading their includes. The Go tool uses the source (only) to check if an .a files needs to be recompiled (because the source is newer.
这篇关于如何用.a文件编译golang程序(无源代码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!