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
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to