注意: 在为 mac os x El Capitan 编译应用程序时,出现错误: /Candle-master/src/frmmain.h:65: error: exception specification of overriding function is more lax than base version const char* what() const / /_GLIBCXX_USE_NOEXCEPT ^ FIX: 请替换代码块:
从:
class CancelException : public std::exception {
public:
const char* what() const _GLIBCXX_USE_NOEXCEPT
{
return "Operation was cancelled by user";
}
};
到:
class CancelException : public std::exception {
public:
#ifdef Q_OS_MAC
#undef _GLIBCXX_USE_NOEXCEPT
#define _GLIBCXX_USE_NOEXCEPT _NOEXCEPT
#endif
const char* what() const _GLIBCXX_USE_NOEXCEPT
{
return "Operation was cancelled by user";
}
};
注意:
在为 mac os x El Capitan 编译应用程序时,出现错误:
/Candle-master/src/frmmain.h:65: error: exception specification of overriding function is more lax than base version
const char* what() const / /_GLIBCXX_USE_NOEXCEPT
^
FIX:
请替换代码块:
从:
到: