The helpfile Writing Unit Generators (from SC’s help system) covers what you need in order to create a UGen plugin (including Xcode instructions for those on Mac). Plugins are dynamically loaded libraries (DLLs) written in C++.

You can also read the chapter “Writing Unit Generator Plug-ins” from the official SuperCollider Book.