[studxml-users] VS2017 Error message C2039 'exception' is not a
member of 'std'
parniczky.tibor at upcmail.hu
parniczky.tibor at upcmail.hu
Tue Mar 20 13:11:56 EDT 2018
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 <xml/details/pre.hxx>
#include <exception>
#include <xml/details/export.hxx>
namespace xml
{
struct LIBSTUDXML_EXPORT exception: std::exception {};
}
#include <xml/details/post.hxx>
#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
More information about the studxml-users
mailing list