winapi - CryptAcquireContext -- unresolved external -


i'm linking third-party library (poco c++) , getting following unresolved symbol errors linker. appears unable find "cryptacquirecontextw", "cryptreleasecontext", , "cryptgenrandom".

according microsoft information here, these functions linkable using "advapi32.lib". i've added linker inputs symbols remain unresolved.

1>pocofoundationclr.lib(randomstream.obj) : error lnk2019: unresolved external symbol __imp__cryptacquirecontextw@20 referenced in function "public: virtual int __thiscall poco::randombuf::readfromdevice(char *,__int64)" (?readfromdevice@randombuf@poco@@uaehpad_j@z)  1>pocofoundationclr.lib(randomstream.obj) : error lnk2019: unresolved external symbol __imp__cryptreleasecontext@8 referenced in function "public: virtual int __thiscall poco::randombuf::readfromdevice(char *,__int64)" (?readfromdevice@randombuf@poco@@uaehpad_j@z)  1>pocofoundationclr.lib(randomstream.obj) : error lnk2019: unresolved external symbol __imp__cryptgenrandom@12 referenced in function "public: virtual int __thiscall poco::randombuf::readfromdevice(char *,__int64)" (?readfromdevice@randombuf@poco@@uaehpad_j@z) 

i've verified advapi32.lib on search path , advapi32.dll in windows directory, i'm not sure how error continues happen.

ideas, anyone?

thanks!

although can't readily explain why worked, here's did.

the project failing had "advapi32.lib" listed in "inherited" section of linker inputs, apparently wasn't being linked in.

i added "advapi32.lib" "additional libraries" section , somehow caused picked , linked properly.

i'm going write off difference in how vs 2013 installed on 2 pcs, it's still curious oddity.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -