Temporary header file '/tmp/zRYViUvGAO/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/jsonrpccpp/client/batchcall.h" #include "/usr/include/jsonrpccpp/client/batchresponse.h" #include "/usr/include/jsonrpccpp/client/client.h" #include "/usr/include/jsonrpccpp/client/connectors/httpclient.h" #include "/usr/include/jsonrpccpp/client/connectors/unixdomainsocketclient.h" #include "/usr/include/jsonrpccpp/client/iclientconnector.h" #include "/usr/include/jsonrpccpp/client.h" #include "/usr/include/jsonrpccpp/common/errors.h" #include "/usr/include/jsonrpccpp/common/exception.h" #include "/usr/include/jsonrpccpp/common/jsonparser.h" #include "/usr/include/jsonrpccpp/common/procedure.h" #include "/usr/include/jsonrpccpp/common/specification.h" #include "/usr/include/jsonrpccpp/common/specificationparser.h" #include "/usr/include/jsonrpccpp/common/specificationwriter.h" #include "/usr/include/jsonrpccpp/server/abstractserver.h" #include "/usr/include/jsonrpccpp/server/abstractserverconnector.h" #include "/usr/include/jsonrpccpp/server/connectors/httpserver.h" #include "/usr/include/jsonrpccpp/server/connectors/unixdomainsocketserver.h" #include "/usr/include/jsonrpccpp/server/iclientconnectionhandler.h" #include "/usr/include/jsonrpccpp/server/iprocedureinvokationhandler.h" #include "/usr/include/jsonrpccpp/server/requesthandlerfactory.h" #include "/usr/include/jsonrpccpp/server.h" #include "/usr/include/jsonrpccpp/stubgen/client/cppclientstubgenerator.h" #include "/usr/include/jsonrpccpp/stubgen/client/jsclientstubgenerator.h" #include "/usr/include/jsonrpccpp/stubgen/codegenerator.h" #include "/usr/include/jsonrpccpp/stubgen/helper/cpphelper.h" #include "/usr/include/jsonrpccpp/stubgen/server/cppserverstubgenerator.h" #include "/usr/include/jsonrpccpp/stubgen/servertemplate.h" #include "/usr/include/jsonrpccpp/stubgen/stubgenerator.h" #include "/usr/include/jsonrpccpp/stubgen/stubgeneratorfactory.h" #include "/usr/include/jsonrpccpp/stubgen/stubhelper.h" #include "/usr/include/jsonrpccpp/version.h" // add namespaces namespace Json{typedef int tmp_add_type_1;} Json::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace jsonrpc{typedef int tmp_add_type_2;} jsonrpc::tmp_add_type_2 tmp_add_func_2(){return 0;}; // add classes CURLMsg* tmp_add_class_0; MHD_ConnectionInfo* tmp_add_class_1; MHD_DaemonInfo* tmp_add_class_2; MHD_IoVec* tmp_add_class_3; MHD_OptionItem* tmp_add_class_4; _G_fpos64_t* tmp_add_class_5; _G_fpos_t* tmp_add_class_6; _IO_cookie_io_functions_t* tmp_add_class_7; cmsghdr* tmp_add_class_8; curl_blob* tmp_add_class_9; curl_certinfo* tmp_add_class_10; curl_easyoption* tmp_add_class_11; curl_fileinfo* tmp_add_class_12; curl_forms* tmp_add_class_13; curl_header* tmp_add_class_14; curl_hstsentry* tmp_add_class_15; curl_httppost* tmp_add_class_16; curl_index* tmp_add_class_17; curl_khkey* tmp_add_class_18; curl_slist* tmp_add_class_19; curl_sockaddr* tmp_add_class_20; curl_ssl_backend* tmp_add_class_21; curl_tlssessioninfo* tmp_add_class_22; curl_version_info_data* tmp_add_class_23; curl_waitfd* tmp_add_class_24; curl_ws_frame* tmp_add_class_25; iovec* tmp_add_class_26; itimerval* tmp_add_class_27; linger* tmp_add_class_28; mmsghdr* tmp_add_class_29; msghdr* tmp_add_class_30; osockaddr* tmp_add_class_31; sockaddr* tmp_add_class_32; sockaddr_storage* tmp_add_class_33; sockaddr_un* tmp_add_class_34; ucred* tmp_add_class_35; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/zRYViUvGAO/dump1.h" In file included from /usr/include/jsonrpccpp/client/client.h:13, from /tmp/zRYViUvGAO/dump1.h:14: /usr/include/jsonrpccpp/client/iclientconnector.h:23:90: error: ISO C++17 does not allow dynamic exception specifications 23 | virtual void SendRPCMessage(const std::string& message, std::string& result) throw(JsonRpcException) = 0; | ^~~~~ /usr/include/jsonrpccpp/client/client.h:33:122: error: ISO C++17 does not allow dynamic exception specifications 33 | void CallMethod (const std::string &name, const Json::Value ¶meter, Json::Value& result) throw (JsonRpcException); | ^~~~~ /usr/include/jsonrpccpp/client/client.h:34:101: error: ISO C++17 does not allow dynamic exception specifications 34 | Json::Value CallMethod (const std::string &name, const Json::Value ¶meter) throw (JsonRpcException); | ^~~~~ /usr/include/jsonrpccpp/client/client.h:36:98: error: ISO C++17 does not allow dynamic exception specifications 36 | void CallProcedures (const BatchCall &calls, BatchResponse &response) throw (JsonRpcException); | ^~~~~ /usr/include/jsonrpccpp/client/client.h:37:73: error: ISO C++17 does not allow dynamic exception specifications 37 | BatchResponse CallProcedures (const BatchCall &calls) throw (JsonRpcException); | ^~~~~ /usr/include/jsonrpccpp/client/client.h:39:101: error: ISO C++17 does not allow dynamic exception specifications 39 | void CallNotification (const std::string& name, const Json::Value& parameter) throw (JsonRpcException); | ^~~~~ In file included from /tmp/zRYViUvGAO/dump1.h:15: /usr/include/jsonrpccpp/client/connectors/httpclient.h:23:48: error: ISO C++17 does not allow dynamic exception specifications 23 | HttpClient(const std::string& url) throw (JsonRpcException); | ^~~~~ /usr/include/jsonrpccpp/client/connectors/httpclient.h:25:90: error: ISO C++17 does not allow dynamic exception specifications 25 | virtual void SendRPCMessage(const std::string& message, std::string& result) throw (JsonRpcException); | ^~~~~ In file included from /tmp/zRYViUvGAO/dump1.h:16: /usr/include/jsonrpccpp/client/connectors/unixdomainsocketclient.h:23:102: error: ISO C++17 does not allow dynamic exception specifications 23 | virtual void SendRPCMessage(const std::string& message, std::string& result) throw (JsonRpcException); | ^~~~~ In file included from /tmp/zRYViUvGAO/dump1.h:24: /usr/include/jsonrpccpp/common/specificationparser.h:21:97: error: ISO C++17 does not allow dynamic exception specifications 21 | static std::vector GetProceduresFromFile(const std::string& filename) throw (JsonRpcException); | ^~~~~ /usr/include/jsonrpccpp/common/specificationparser.h:22:97: error: ISO C++17 does not allow dynamic exception specifications 22 | static std::vector GetProceduresFromString(const std::string& spec) throw (JsonRpcException); | ^~~~~