duma
duma copied to clipboard
Not working with Cygwin on Windows
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.
I found I needed to use
-std=c++14
to compile testoperators.cpp