Menu

#33 DUMA fails to compile with newer C++ compilers

v1.0 (example)
open
nobody
None
5
2019-05-10
2017-06-27
No

dumapp.cpp: In function 'void operator new(std::size_t)':
dumapp.cpp:192:19: error: declaration of 'void
operator new(std::size_t) throw (std::bad_alloc)' has a different exception specifier
void * DUMA_CDECL operator new( DUMA_SIZE_T size )
^~~~~~~~
In file included from dumapp.cpp:39:0:
dumapp.h:84:23: note: from previous declaration 'void* operator new(std::size_t)'
void * DUMA_CDECL operator new(DUMA_SIZE_T) throw(std::bad_alloc);

The following patch fixes the issue:
https://github.com/crosstool-ng/crosstool-ng/blob/master/patches/duma/2_5_15/200-cpp11-new-operator.patch

Discussion

  • Ben Fisher

    Ben Fisher - 2019-05-10

    Also, if anyone's compiling in 2019 like me, remember to get the latest Duma source from CSV, which builds more cleanly than the duma_2_5_15 release.

     

Log in to post a comment.

Auth0 Logo