I've put together a reference for everything you need to know to build cross platform dynamic linking programs in C (Windows & Linux, no Mac info yet). I tried to test and search for every last thing I could think of (in one week). I hope it's helpful or something!
https://mr4th.com/articles/reference-dynamic-linking