Try using icpc instead of icc. Looks like you are missing the cxa libraries. icc is a driver to compile "C" files and icpc is use to compile "C++" file.
A related thread on Linux is posted here:
BTW, on your command line, -shared is a linux option, it's not valid on Mac. Try using icpc with the option