Sorry, I didn’t mention that when I try to build the library with the overridden new and delete operators, I get the following compile error:
5> In file included from D:\Sony\wws_shared\sdk\trunk\components\wws_mem\example\debugging\debugging.cpp:18:
5> In file included from …....\wws_mem/wws_mem_all.h:173:
5>…....\wws_mem/wws_mem_new.h(149,16): error : redefinition of ‘operator new’
5> D:\usr\local\psp2\ORBIS SDKs\2.500_pre_mod\target\include\new(123,14) : note: previous definition is here
The new function signatures are effectively the same.
Is this the effective end of overriding global new and delete?
Thanks.
-John
Sorry, I didn’t mention that when I try to build the library with the
overridden new and delete operators, I get the following compile error:
5> In file included from
D:\Sony\wws_shared\sdk\trunk\components\wws_mem\example\debugging\debugging.cpp:18:
5> In file included from ..\..\..\wws_mem/wws_mem_all.h:173:
5>..\..\..\wws_mem/wws_mem_new.h(149,16): error : redefinition of
'operator new'
5> D:\usr\local\psp2\ORBIS SDKs\2.500_pre_mod\target\include\new(123,14)
: note: previous definition is here
The new function signatures are effectively the same.
Is this the effective end of overriding global new and delete?
Why do you have a definition of 'operator new' in either of these places? A
replacement global 'operator new' cannot be defined as 'inline', so it
should never be defined in a header file, and certainly not in a header
that you put into a module.