Quote:
Originally Posted by Emufr3ak
I can define classes and access them. As soon as I use the new operator I get linker errors (undefined symbol).
|
You can simply provide your own "operator new()". Actually, you need to create two operator new, the array version and the scalar version, and the corresponding operator delete, also both versions. You need to throw "bad_alloc" then yourself if the allocation fails.