ShannonDing commented on issue #305: [Master] go build fail using static library. URL: https://github.com/apache/rocketmq-client-go/issues/305#issuecomment-561172195 hello, did you follow the steps? 1. remove the dynamic library in your LDPATH(default: /usr/local/lib) 2. change the LDFLAGs in the go SDK from "cgo LDFLAGS: -L/usr/local/lib -lrocketmq" to "cgo LDFLAGS: -L/usr/local/lib -lz -lstdc++ -lrocketmq" 3. build your project directly **without any building flags.** I have checked that it works well on gcc/g++ 4.8.x.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
