djimenez / iconv-go

iconv support for Go
BSD 2-Clause "Simplified" License
418 stars 66 forks source link

iconv.h: No such file or directory #38

Closed kalsolio closed 5 years ago

kalsolio commented 5 years ago

github.com/djimenez/iconv-go

go\src\github.com\djimenez\iconv-go\converter.go:8:19: fatal error: iconv.h: No such file or directory compilation terminated.

djimenez commented 5 years ago

The package is just using cgo to use an iconv implementation on your system. An appropriate iconv has to be available and usable by the c compiler go is calling out to.

I would suggest using https://godoc.org/golang.org/x/text/encoding (which is pure go) if you don't have a legacy reason to need to use a specific iconv implementation.