fork download
  1. #include <new>
  2.  
  3. void * operator new (std::size_t) {
  4. extern void *bare_new_erroneously_called();
  5. return bare_new_erroneously_called();
  6. }
  7.  
  8. int main ()
  9. {
  10.  
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/QixX3R/cczri4AW.o: In function `operator new(unsigned int)':
prog.cpp:(.text+0x1): undefined reference to `bare_new_erroneously_called()'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty