Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

error C4013: 'InitializeSRWLock' undefined; assuming extern returning int

$
0
0
Firstly, I'm seeing this error when I try to compile a 3rd-party library. I see it with other function calls too - such as AcquireSRWLockExclusive() / TryAcquireSRWLockExclusive() / ReleaseSRWLockExclusive() and a few others. According to MSDN I should be able to fix this by #including or maybe I've tried #including both - and yet I still get the error... :( Secondly - this is VS2015 (Community Edition) but whenever I've compiled things in previous versions of MSVC, I've a feeling this was previously a warning. I've checked the project's *Propertie*s but warnings aren't set up to be treatable as errors. So might there be something in a header file somewhere which would over-ride the project setting (and thereby cause warnings to get treated as errors) ?

Viewing all articles
Browse latest Browse all 3042

Trending Articles