zelenin/go-tdlib

Could you help with build (make) app errors

andreymelkov opened this issue · 1 comments

I tried build our app and got such errors

CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./build/chat_http cmd/http/chat/main.go
# github.com/zelenin/go-tdlib/client
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/client.go:11:18: undefined: JsonClient
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/client.go:13:23: undefined: Response
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/listener.go:50:16: undefined: Type
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/type.go:2802:2: undefined: meta
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/type.go:2873:2: undefined: meta
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/type.go:4801:2: undefined: meta
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/type.go:20075:2: undefined: meta
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/type.go:24601:2: undefined: meta
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/function.go:1370:18: undefined: JsonInt64
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/function.go:3220:10: undefined: JsonInt64
../../../../../../go/pkg/mod/github.com/zelenin/go-tdlib@v0.7.0/client/function.go:3220:10: too many errors
make: *** [build-chat] Error 1

If I just do 'go run' all is fine?
What is problem could be?

Solved by CGO_ENABLED=1