异步函数错误

error in async function

我想用 std::async 测试以下函数以获得静态 class,我的主要目标是等待直到函数执行。但我面临以下错误。谁能告诉我这个错误的原因。

IASD* ASDInterface = getASD();//gets the instance corrcet and tested function successfully

auto habnd = std::async(std::launch::async, &IASD::handle_request, ASDInterface ,arb_id, sid, data, size);

在调试上面的行后我得到以下错误。

error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "protected: __thiscall Concurrency::details::_RefCounter::_RefCounter(long)" (??0_RefCounter@details@Concurrency@@IAE@J@Z)

有人能回答我为什么会出现上述错误吗?

非常感谢。

我认为它不会直接转入 std::async
我怀疑代码生成选项卡上的运行时选项不匹配

确保在调试构建时,"Runtime Library" 设置为 "Multy-threaded debug /MTd" 或 "Multi-thread Debug DLL /MDd"
(项目 -> 属性 -> 配置属性 -> C/C++ -> 代码生成 -> 运行时库)