Cannot find -lgcc_s

[ray@ray-laptop bls-signatures]$ g++ -Wl,-no_pie -std=c++11 -Ibuild/_deps/relic-src/include -Ibuild/_deps/relic-build/include -Isrc -L/usr/lib/ -L./build/ -l bls test.cpp
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status

I tried executing this


I have those three.

I tried executing it linking to all three particularly and also not linking to any of them.

Hello raycoms,
what program is it that you are trying to compile?
Best Regards, Julius

Hi, this one here: GitHub - Chia-Network/bls-signatures: BLS signatures in C++, using the relic toolkit BLS12-381

replace this with
g++ -no-pie -std=c++11 -Ibuild/_deps/relic-src/include -Ibuild/_deps/relic-build/include -Isrc -L/usr/lib/ -L./build/ -l bls test.cpp

Ty, that seemed to have solved the libgcc issue.

great! Happy, that I was able to help.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.