[cfe-users] error: inline function '_BitScanForward' is not defined

pendyala syam via cfe-users cfe-users at lists.llvm.org
Thu Nov 7 12:07:50 PST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20191108/8bff7d41/attachment.html>


More information about the cfe-users mailing list