duma icon indicating copy to clipboard operation
duma copied to clipboard

Not working with Cygwin on Windows

Open Ratstail91 opened this issue 3 years ago • 1 comments

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.

Ratstail91 avatar Aug 22 '22 18:08 Ratstail91

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

PeterBBBBB avatar Aug 22 '22 22:08 PeterBBBBB