什么是升压系统error_code 2.

What is boost system error_code number 2

本文关键字:code error 系统 什么      更新时间:2023-10-16

我正在尝试弄清楚什么是提升系统错误代码 2。 在程序中,他们打印出升压错误代码。 但是,我不确定如何查找此错误代码。

任何帮助都会得到赞赏。

在我的头顶上:ENOENT/FileNotFound

请参阅 http://www.boost.org/doc/libs/1_58_0/libs/system/doc/reference.html#Header-error_code 中的错误代码

住在科里鲁

#include <boost/system/error_code.hpp>
#include <iostream>
int main()
{
    boost::system::error_code ec;
    ec.assign(2, boost::system::system_category());
    std::cout << ec.message() << "n";
    ec.assign(boost::system::errc::no_such_file_or_directory, boost::system::system_category());
    std::cout << ec.message() << "n";
}

指纹

No such file or directory
No such file or directory

对于窗口,它是ERROR_FILE_NOT_FOUND

检查参考