SAS's C++ part is pure crap, completly useless unless you have it on a very powerfull emulator. Actuall SAS doen't have a C++ compliler, it only has preprocceor spewing out gigantic pieces of C-code for even the simplest C++ code.
AFAIK even GCC can do libraries it may just not be that easy.