Search code examples
c++visual-c++x86bit-manipulationintrinsics

_BitScanForward _BitScanForward64 missing (VS2017) Snappy


I'm trying to compile snappy ( https://bitbucket.org/robertvazan/snappy-visual-cpp) with VS2017. I can't pull this off with VS2015 also; - I've tried in command prompt (msbuild) and through the visual studio IDE; it can't recognize both _BitScanForward and_BitScanForward64. If it didn't recognize just one I would figure I've chosen wrong build mode (x86/x64) but seems like both are missing. I made sure to run the correct version of command prompt when building with msbuild.


Solution

  • #include <intrin.h>
    

    was missing.