Open t3chguy opened 6 years ago
adding
// #cgo LDFLAGS: -lstdc++
// #cgo CPPFLAGS: -stc=c++98
to cld2.go
fixes this but is there any way around it at this level?
(and causes 3 warnings)
Can reproduce with go-1.9 but workaround by @t3chguy doesn't work for me (I missplaced that line. After asking @t3chguy the workaround works)
@t3chguy issues are disabled because it is a fork of another repo.
It still seems to work in our travis continuous build environment:
https://travis-ci.org/blevesearch/blevex
I suspect it may be an environment or compiler version leading to different behavior. Can you share which OS/compiler versions might be having problems?
It's a common issue. CLD2Owners/cld2#47 CLD2Owners/cld2#26 After gcc 5 it doesn't compile without little hacks. Travis builds on gcc-4.8.
@mschoch could you take a look at the related PR https://github.com/blevesearch/cld2/pull/1
https://github.com/blevesearch/cld2 having issues disabled I've opted to make it here instead.