1 开发平台
Win11、VS2022、Fedora39。
2 作业目的
通过VS2022跨平台Linux构建openbmc/intel-ipmi-oem的x64可执行模块。
3 问题描述
该模块启动后,在执行subprojects\phosphor-host-ipmid\user_channel\channel_mgmt.cpp
中的函数convertToMediumTypeIndex出现异常:
if (it == mediumTypeMap.end())
{
log<level::ERR>("Invalid medium type.",
entry("MEDIUM_STR=%s", value.c_str()));
throw std::invalid_argument("Invalid medium type.");
}
经检查,此时的全局变量