如何使用cl链接特定的32位库?

问题描述

在这里和整个互联网上都在寻找答案,但我不知道这一点。 我正在尝试将线程添加到我的32位应用程序中,但是编译器抱怨:

error LNK2019: unresolved external symbol _InitializeConditionVariable
error LNK2019: unresolved external symbol _SleepConditionVariableCS
error LNK2019: unresolved external symbol _WakeConditionVariable
error LNK2019: unresolved external symbol _WakeAllConditionVariable
error LNK2019: unresolved external symbol _InitializeSRWLock
error LNK2019: unresolved external symbol _AcquireSRWLockshared
error LNK2019: unresolved external symbol _TryAcquireSRWLockshared 
error LNK2019: unresolved external symbol _AcquireSRWLockExclusive
error LNK2019: unresolved external symbol _TryAcquireSRWLockExclusive
error LNK2019: unresolved external symbol _ReleaseSRWLockExclusive
error LNK2019: unresolved external symbol _ReleaseSRWLockshared

dumpbin / exports kernel32.dll没有输出|找到“ InitializeConditionVariable”,cl选项也无济于事:

/link /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x86\"

我发现以上路径包含缺少符号的最新kernel32.lib。如何解决以上错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)