Home » U++ Library support » U++ Core » new operator declared twice in MinGW TDM
new operator declared twice in MinGW TDM [message #47719] |
Fri, 10 March 2017 09:36 |
|
koldo
Messages: 3357 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
Compiling in Windows 7 with MinGW TDM 64 5.1.0 I have got this error:
C:\upp\uppsrc\Core\heap.cpp: In function 'void* operator new(size_t)': C:\upp\uppsrc\Core\heap.cpp:245:53: error: declaration of 'void* operator new(size_t) throw (std::bad_alloc)' has a different exception specifier
void *operator new(size_t size) throw(std::bad_alloc) { void *ptr = UPP::MemoryAlloc(size); return ptr; }
In file included from C:/Desarrollo/Packages/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/functional:54:0,
from C:\upp\uppsrc\Core\Core.h:222,
from C:\upp\uppsrc\Core\heap.cpp:1:
C:/Packages/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/new:111:7: error: from previous declaration 'void* operator new(std::size_t)'
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
It is like if new operators are declared twice.
Best regards
IƱaki
[Updated on: Fri, 10 March 2017 09:36] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 26 16:19:57 CEST 2024
Total time taken to generate the page: 0.03775 seconds
|