A class has overloaded operators new and delete. new is public, delete is private.
When constructing an instance
Calling operator new on class will use also delete class if class constructor throws an exception.
If your library does not use exceptions, you can disable exceptions from compiler "-fno-exceptions", then error won't appear anymore. (In Visual studio resides under "C/C++", "Code Generation", "Enable C++ Exceptions" > "No (-fno-exceptions)")