[llvm-dev] Link error: undefined reference to APIInt functions
Hayrapetyan, Anahit via llvm-dev
llvm-dev at lists.llvm.org
Tue Sep 12 10:26:33 PDT 2017
Hi,
I’m getting link error when compiling an executable where llvm::APIInt is used.
Following is the error:
/usr/local/include/llvm/ADT/APInt.h:1372: undefined reference to `llvm::APInt::countLeadingZerosSlowCase() const'
The source file is a simple program, where ConstantInt’s getZExtValue function is called. If I comment out this part, everything goes just fine.
uint64_t val = or_const_op->getZExtValue();
Could you please suggest what the cause of this problem might be?
Thanks,
Anahit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170912/c507b3c0/attachment.html>
More information about the llvm-dev
mailing list