[llvm-dev] opt: symbol lookup error:
John Criswell via llvm-dev
llvm-dev at lists.llvm.org
Thu May 19 07:24:52 PDT 2016
On 5/18/16 4:23 AM, meng qingkun via llvm-dev wrote:
> I am a newbie of llvm. I want to learn how to use llvm pass, but when
> I test the tutorial hello pass, the following error comes up.
> opt: symbol lookup error:
> undefined symbol: _ZN4llvm9Statistic17RegisterStatisticEv
You can use the c++filt program to print a more readable version of the
symbol. When I use "c++filt __ZN4llvm9Statistic17RegisterStatisticEv"
(I had to add an extra underscore), I get:
You need to find the LLVM library that defines this method and link it
into your pass by adding it to the LIBS or USEDLIBS variable in the
Makefile (or something similar).
> I have read the answer suplied by "*Arnamoy Bhattacharyya*arnamoy at
> and I have also built llvm in one and only directory, but the problem
> remains. Could anybody help me fix this? thank you very much!
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
Department of Computer Science, University of Rochester
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev