mdsplus icon indicating copy to clipboard operation
mdsplus copied to clipboard

GCC v11.3.0 compilation

Open SimonPinches opened this issue 2 years ago • 0 comments

Compiling MDSplus with GCC v11.3.0 I get

mdsipobjects.cpp:48:49: error: ISO C++17 does not allow dynamic exception specifications
   48 | extern "C" void *getManyObj(char *serializedIn) throw(MdsException);
      |                                                 ^~~~~
mdsipobjects.cpp:49:49: error: ISO C++17 does not allow dynamic exception specifications
   49 | extern "C" void *putManyObj(char *serializedIn) throw(MdsException);
      |                                                 ^~~~~
mdsipobjects.cpp:111:38: error: ISO C++17 does not allow dynamic exception specifications
  111 | void *getManyObj(char *serializedIn) throw(MdsException)
      |                                      ^~~~~
mdsipobjects.cpp:244:38: error: ISO C++17 does not allow dynamic exception specifications
  244 | void *putManyObj(char *serializedIn) throw(MdsException)
      |                                      ^~~~~
make[1]: *** [<builtin>: mdsipobjects.o] Error 1

A solution is to enforce the C++14 standard (-std=c++14) but it would be useful to make the source code C++17 standard conforming since this seems to now be the default for newer releases of GCC.

SimonPinches avatar Aug 08 '22 09:08 SimonPinches