-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error /usr/bin/ld: cannot find -lc++ #91
Comments
Hi, I have the same problem... Any news? thanks |
Please use v2 branch while I merge it with master/main. |
switch v2 version ref Arman92/go-tdlib#91 Signed-off-by: mritd <[email protected]>
Step 10/13 : RUN 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
---> Running in edae96c0db0b
go: downloading github.com/Arman92/go-tdlib v1.0.1-0.20210806020223-e1bab7be7026
# github.com/Arman92/go-tdlib/client
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lc++
collect2: error: ld returned 1 exit status
Error response from daemon: The command '/bin/sh -c 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' returned a non-zero code: 2
Failed to deploy '<unknown> Dockerfile: tdlib/Dockerfile': Can't retrieve image ID from build stream Upgrading still doesn't work |
Hi I have the same problem, with Ubuntu 18, 64 Bit, golang 1.13 Would you please explain how to "use v2 branch while merge it with master/main"? |
Hi, I try to use v2 version... i have the same problem! :-( Can you help us @Arman92 please? thanks. |
@dfelici87 apt-get install make git zlib1g-dev libssl-dev gperf php cmake clang-6.0 libc++abi-dev libc++-dev this may resolve the -lc++ issue. |
Same problem, but i'm from alpine, i can't install libc++abi-dev |
*Edit: My Docker Machine: Docker machine from Docker Hub My Docker Building Machine:
|
replace "-lc++" to "-lstdc++"
It works. |
for docker build
|
Hi
I get the following command when running
command: go run basicAuthorization.go
error:
github.com/Arman92/go-tdlib
/usr/bin/ld: cannot find -lc++
collect2: error: ld returned 1 exit status
ubuntu 20.04
please help me
@Arman92 thank arman jan
The text was updated successfully, but these errors were encountered: