In C for example, there is no malloc() without a runtime library (libc). And I think for example, on Windows malloc just calls HeapAlloc(). But in C++, the way to allocate dynamic memory is actually a keyword of the language; same for “delete”. So therefore, how would “new” work if you compiled your code without a runtime library?
Thanks
If new operator is not overloaded, it is generally the same as malloc function. It is platform dependent. The only difference, is that it automatically manage the initialization of the data.
EDIT:
On linux you can not compile without standard library. You got the following message: