operator delete already defined
I am using my own library within Unreal 4 and I seem to have a conflict issue with the delete operator.
the linker error only appears if I use one of my own dynamic arrays from my library - which is a templates class (all inlined). That class internally uses new and delete which are defined with their own allocator.
I have properly guarded my #include of my framework like this
has anyone some other suggestion what I could do to prevent this redefinition from happening ?
asked Jul 30 '14 at 08:04 PM in C++ Programming
If somebody has linker errors related to new and delete already being declared, it's sometimes due to adding ";" to the end of Macro lines, like declaration of Log Categories
DECLARE_LOG_CATEGORY_EXTERN(EditorLog, Verbose, All); <-- REMOVE THE ;
This took a long while to discover, but it was it. Just the habit... be careful!
answered Feb 16 '18 at 10:38 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here