The build error is caused because
this code violates rule 5 under the Guidelines
for Writing Standard C++ Libraries section. As per the rule, a static
library of target type LIB cannot be linked against an STDEXE or STDDLL,
unless it has the MMP keyword, STDCPP in its .mmp file.

You
can fix the build error by adding STDCPP in the operator_new_failure_example_lib.mmp file
as shown in the following code: