As object files created during the compilation contain references to those runtime libraries you definitely
need to link with them in order to satisfy those references. In your case it is allocation functions.
-std=c++11 uses a completely different ABI and a completely different set of runtime libraries compared to the default mode.
CC -std=c++11 knows which libraries to use (and which library/run paths to set up).
CC by default links with different set of libraries and sets up a different set of library/run paths.
Thus you dont have any other options - you need to link with CC -std=c++11.
Say, if you would compile the sources with g++ and then attempted to link it with Studio result would be the same.