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