simplelib icon indicating copy to clipboard operation
simplelib copied to clipboard

go get failed under ubuntu .

Open textproofreading opened this issue 8 years ago • 2 comments

hi, all

following the ReadMe guide , I run go get command , but failed:

go get github.com/zacg/simplelib
can't build package github.com/zacg/simplelib because it contains C++ files (simpleclass.cpp) but it's not using cgo nor SWIG

my env:

go version
go version go1.7.1 linux/amd64

any suggestions?

thanks.

textproofreading avatar Oct 13 '16 05:10 textproofreading

Any insight into this? I'm just now hitting the same thing.

brentnd avatar Feb 18 '17 02:02 brentnd

It looks like you can get around the issue by inserting: import "C" to trigger CGO.

sithembiso avatar Sep 26 '17 10:09 sithembiso