I am trying to compile a program using make -f Makefile but I am getting this errorwhen typing 'make' command:
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
I tried some solutions like:
sudo find /usr/ -name libgcc_s.so
ld -lgcc_s --verbose
sudo ln -s /usr/lib/x86_64-linux-gnu/libgcc_s.so /usr/lib/x86_64-linux-gnu/
but after that an error message appears:
ln: failed to create symbolic link '/usr/lib/x86_64-linux-gnu/libgcc_s.so': File exists
How can I solve this problem?
0 Answers