windows 下 golang db2驱动编译

宇宙蒙面侠X 发布于 2016/12/29 16:27
阅读 247
收藏 0
DB2

环境 win7+ mingw + golang 1.7 +db2 9.7 +liteide 30.1

DB2HOME=D:/PROGRA~2/IBM/SQLLIB
CGO_LDFLAGS=-LD:/PROGRA~2/IBM/SQLLIB/lib
CGO_CFLAGS=-ID:/PROGRA~2/IBM/SQLLIB/include

编译 

go get bitbucket.org/phiggins/go-db2-cli

报错

G:/mingw/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldb2

G:/mingw/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldb2

G:/mingw/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldb2

G:/mingw/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldb2

collect2.exe: error: ld returned 1 exit status

不懂该如何配置 。

加载中
返回顶部
顶部