CentOS error
/tmp/go-build252214657/github.com/djimenez/iconv-go/_obj/converter.cgo2.o: In function `call_iconv': converter.cgo2.c:(.text+0x16): undefined reference to `libiconv' /tmp/go-build252214657/github.com/djimenez/iconv-go/_obj/converter.cgo2.o: In function `_cgo_5f3e10abf205_C2func_iconv_close': converter.cgo2.c:(.text+0xa7): undefined reference to `libiconv_close' /tmp/go-build252214657/github.com/djimenez/iconv-go/_obj/converter.cgo2.o: In function `_cgo_5f3e10abf205_C2func_iconv_open': converter.cgo2.c:(.text+0xfb): undefined reference to `libiconv_open' /tmp/go-build252214657/github.com/djimenez/iconv-go/_obj/converter.cgo2.o: In function `_cgo_5f3e10abf205_Cfunc_iconv_close': converter.cgo2.c:(.text+0x183): undefined reference to `libiconv_close' /tmp/go-build252214657/github.com/djimenez/iconv-go/_obj/converter.cgo2.o: In function `_cgo_5f3e10abf205_Cfunc_iconv_open': converter.cgo2.c:(.text+0x1b7): undefined reference to `libiconv_open' collect2: error: ld returned 1 exit status
This commit is contained in:
parent
8960e66bd3
commit
65e0728ca8
@ -4,6 +4,7 @@ package iconv
|
||||
#cgo darwin LDFLAGS: -liconv
|
||||
#cgo freebsd LDFLAGS: -liconv
|
||||
#cgo windows LDFLAGS: -liconv
|
||||
#cgo LDFLAGS: -liconv
|
||||
#include <stdlib.h>
|
||||
#include <iconv.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user