From parniczky.tibor at upcmail.hu Tue Mar 20 13:11:56 2018 From: parniczky.tibor at upcmail.hu (parniczky.tibor@upcmail.hu) Date: Wed Mar 21 11:00:24 2018 Subject: [studxml-users] VS2017 Error message C2039 'exception' is not a member of 'std' Message-ID: <004a01d3c06e$8dc17dc0$a9447940$@upcmail.hu> Hi, I am including libstudxml-1.0.1 as a static library, prepared with Visual Studio 2017, using the Debug Win32 platform. Then I would like to use it in another project, but get the following message: 1>d:\cpp_dev\xls_dev\libstudxml-1.0.1\xml\exception(15): error C2039: 'exception': is not a member of 'std' and several others as 'exception' cannot be used in the following. The error message points to the definition: // file : xml/exception -*- C++ -*- // copyright : Copyright (c) 2013-2014 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file #ifndef XML_EXCEPTION #define XML_EXCEPTION #include #include #include namespace xml { struct LIBSTUDXML_EXPORT exception: std::exception {}; } #include #endif // XML_EXCEPTION ============ std::exception is correct, it must be by definition, so the real reason should be something else. But what? The std:: reference is used elsewhere ok. Thank you! Tibor From boris at codesynthesis.com Wed Mar 21 11:00:17 2018 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Mar 21 11:03:46 2018 Subject: [studxml-users] VS2017 Error message C2039 'exception' is not a member of 'std' In-Reply-To: <004a01d3c06e$8dc17dc0$a9447940$@upcmail.hu> References: <004a01d3c06e$8dc17dc0$a9447940$@upcmail.hu> Message-ID: parniczky.tibor@upcmail.hu writes: > 1>d:\cpp_dev\xls_dev\libstudxml-1.0.1\xml\exception(15): error C2039: > 'exception': is not a member of 'std' > > [...] > > #include > > [...] > > But what? My guess would be that you have something like this: -Id:\cpp_dev\xls_dev\libstudxml-1.0.1\xml instead of: -Id:\cpp_dev\xls_dev\libstudxml-1.0.1 This causes #include to include xml , not std . Boris