johnsonjh / duma

duma: Detect Unintended Memory Access (D.U.M.A.) - A Red-Zone memory allocator
https://github.com/johnsonjh/duma
GNU General Public License v2.0
99 stars 10 forks source link

Not working with Cygwin on Windows #193

Open Ratstail91 opened 2 years ago

Ratstail91 commented 2 years ago

I've tried a few different ways to get this to work - but in general it seems to have trouble figuring out what OS I'm running.

Also, I'm getting errors like this:

/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:38:35: error: ISO C++17 does not allow dynamic exception specifications
   38 |   void *operator new(DUMA_SIZE_T) throw(std::bad_alloc);
      |                                   ^~~~~
/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:44:37: error: ISO C++17 does not allow dynamic exception specifications
   44 |   void *operator new[] (DUMA_SIZE_T)throw(std::bad_alloc);
      |                                     ^~~~~
/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:51:54: error: ISO C++17 does not allow dynamic exception specifications
   51 |   void *operator new(DUMA_SIZE_T, const char *, int) throw(std::bad_alloc);
      |                                                      ^~~~~
/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:59:59: error: ISO C++17 does not allow dynamic exception specifications
   59 |   void *operator new[] ( DUMA_SIZE_T, const char *, int ) throw(
      |                                                           ^~~~~
/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:75:37: error: ISO C++17 does not allow dynamic exception specifications
   75 | optest::operator new(DUMA_SIZE_T s) throw(std::bad_alloc)
      |                                     ^~~~~
/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:102:39: error: ISO C++17 does not allow dynamic exception specifications
  102 | optest::operator new[] (DUMA_SIZE_T s)throw(std::bad_alloc)
      |                                       ^~~~~
/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:132:29: error: ISO C++17 does not allow dynamic exception specifications
  132 |                      int l) throw(std::bad_alloc)
      |                             ^~~~~
/cygdrive/c/Users/kayne/Desktop/duma/tests/testoperators.cpp:162:34: error: ISO C++17 does not allow dynamic exception specifications
  162 |                          int l ) throw(std::bad_alloc)

Nothing is really working.

PeterBBBBB commented 2 years ago

I found I needed to use -std=c++14 to compile testoperators.cpp