golang編譯庫文件方式

// as c-shared library
$ go build -buildmode=c-shared -o nautilus.a nautilus.go
// as c-archive
$ go build -buildmode=c-archive -o nautilus.a nautilus.goui

gdb調試參數:調試

go build -gcflags "-N -l" -o gdb_sandbox main.go
相關文章
相關標籤/搜索