[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
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev