Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Cygwin on Windows #193

Open
Ratstail91 opened this issue Aug 22, 2022 · 1 comment
Open

Not working with Cygwin on Windows #193

Ratstail91 opened this issue Aug 22, 2022 · 1 comment

Comments

@Ratstail91
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants