Linking a shared library using gcc August 2, 2023 by Tarik What worked for me was: gcc -L. -l:myfile.so