Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

golang windows 环境下开发 使用 ZBar #include

在 使用 golang 的 需要用到

github.com/PeterCxy/gozbar

但在安装的时候遇到错误如下

E:2017codegolang>go get github.com/PeterCxy/gozbar
# github.com/PeterCxy/gozbar
D:langgopathsrcgithub.comPeterCxygozbarconst.go:5:19: fatal error: zbar.h: No such file or directory
 // #include <zbar.h>
                   ^
compilation terminated.

在遇到 有些 golib 用到 include 的时候 该如何办呢.

求大神指点!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

安装c++编译器咯, 在变量环境里设置好编译器路径就ok了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...