error: inline function '_BitScanForward' is not defined

Hi Team,

While compiling my source cpp file which is including intrin.h, clang is throwing the following error

error: inline function ‘_BitScanForward’ is not defined [-Werror,-Wundefined-inline] _BitScanForward (

I checked clang headers for definition but in clang intrin.h header file its just declared as inline but not defined.

Ref: https://github.com/llvm-mirror/clang/blob/master/lib/Headers/intrin.h#L146

Ideally inline functions has to be defined in header file itself right? But why is clang not defining function definitions in the header file? Is there any specific reason for doing so?

Thanks,
Pendyala