compiling with C++ source and got the following erros inside stdexcept and iostream "/export/home/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 57: Error: Function std::logic_error::~logic_error() can throw only the exceptions thrown by the function std::exception::~exception() it overrides. "/export/home/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 60: Error: Function std::logic_error::what() const can throw only the exceptions thrown by the function std::exception::what() const it overrides. "/export/home/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 128: Error: Function std::runtime_error::~runtime_error() can throw only the exceptions thrown by the function std::exception::~exception() it overrides. "/export/home/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 131: Error: Function std::runtime_error::what() const can throw only the exceptions thrown by the function std::exception::what() const it overrides. "/ex
Sun Studio C++ - comilation error in stdexcept and iostream.
最新推荐文章于 2024-10-12 11:03:43 发布
在使用Sun Studio编译C++源码时遇到了stdexcept和iostream头文件中的错误。错误涉及到函数异常处理不匹配及iostream声明错误。通过在<stdexcept>中重新定义_RWSTD_THROW_SPEC_NULL为"throw()"解决了stdexcept的问题,但iostream的解决方案尚未给出。
摘要由CSDN通过智能技术生成