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 阅读全文
posted @ 2017-06-14 16:44 Ender.Lu 阅读(3375) 评论(0) 推荐(0) 编辑
摘要:1.golang生成c-shared类型到so 建立文件夹hello,创建main.go文件,内容如下 生成so脚本文件,命令行: 成生libhello.so libhello.h文件 2.c语言调用libhello.so 把libhello.so拷贝到/usr/lib中用于运行 新建一个文件夹he 阅读全文
posted @ 2017-06-14 11:52 Ender.Lu 阅读(9241) 评论(0) 推荐(2) 编辑
摘要:在不在os中设置gopath,goroot的情况下 建立build.sh文件,文件内容如下: export GOARCH="386"export GOBIN="/home/looler/下载/go/bin"export GOEXE=""export GOHOSTARCH="386"export GO 阅读全文
posted @ 2017-06-13 15:45 Ender.Lu 阅读(870) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/andylau00j/article/details/53769446 阅读全文
posted @ 2017-06-12 17:15 Ender.Lu 阅读(450) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示