“C and C++ in 5 days“, from Philip Machanick. A must read for anyone new to C/C++.
More C and C++ tutorials and resources can be found here.
Dynamic libraries are always a kind of wizardry you have to develop almost from scratch whenever you start developing in a new platform. So for OSX, nothing like getting into the official documentation.
Meanwhile, here is a “Beginner’s guide to Linkers” (MS Windows oriented, but seems nice anyway).
Nice info about how things go behind the scenes when executing something in OSX:
It also describes in some details the Mach-O file format.