You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed tdlib from disto repo and trying to build my app:
$ go build cmd/app.go
# github.com/Arman92/go-tdlib
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/libtdutils.a(misc.cpp.o): undefined reference to symbol '_ZNSt6localeD1Ev@@GLIBCXX_3.4'
/usr/bin/ld: /usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
But following works fine:
$ export CGO_LDFLAGS="-lstdc++"
$ go build cmd/app.go
I have installed tdlib from disto repo and trying to build my app:
But following works fine:
-lstdc++
is missing therego-tdlib/tdlib.go
Line 6 in 2454be4
And example from README isn't working also. Try
go build
with-x
flag and you will see that-lstdc++
will not be added.$ go build --ldflags "-extldflags '-static -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -ldl -lm -lssl -lcrypto -lstdc++ -lz'" -o /tmp/getChats getChats.go
The text was updated successfully, but these errors were encountered: