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.
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?