06 2017 档案
摘要:buidmod为c-archive能在window下生成 ,c-shared则不行 1.golang生成c-archive静态库 main.go bd.bat 生成main.a 以及main.h 2.window下使用mingw64 gcc调用main.a main.c bdc.bat 生成main
阅读全文
摘要:1.golang生成c-shared类型到so 建立文件夹hello,创建main.go文件,内容如下 生成so脚本文件,命令行: 成生libhello.so libhello.h文件 2.c语言调用libhello.so 把libhello.so拷贝到/usr/lib中用于运行 新建一个文件夹he
阅读全文
摘要:在不在os中设置gopath,goroot的情况下 建立build.sh文件,文件内容如下: export GOARCH="386"export GOBIN="/home/looler/下载/go/bin"export GOEXE=""export GOHOSTARCH="386"export GO
阅读全文
摘要:http://blog.csdn.net/andylau00j/article/details/53769446
阅读全文