How to link specific 32 bit library using cl?

40 views Asked by At

I looked for an answer here and all over the internet, but I can't figure out this. I'm trying to add threading to my 32bit app, but compiler is complaining about:

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

No output at dumpbin /exports kernel32.dll | find "InitializeConditionVariable" and cl options are not helping either:

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

I found above path to contain latest kernel32.lib having missing symbols. How to fix above errors?

0

There are 0 answers