[LLVMdev] LLVMHello example fails with "undefined symbol"
Duncan Sands
baldrick at free.fr
Tue Feb 1 23:57:44 PST 2011
Hi Anatol, does the hello plugin in llvm-2.8/lib/Transforms/Hello work? The
online docs refer to the upcoming 2.9 release of LLVM, so may not work correctly
with LLVM 2.8.
Ciao, Duncan.
> I am trying to learn LLVM by following this article
> http://llvm.org/docs/WritingAnLLVMPass.html
>
> I checked 2.8 version from svn, built it and now I am trying to run
> Hello world example as
>
> $ opt -load ./Release/lib/LLVMHello.so -analyze
>
> but unfortunately it fails:
>
> Error opening './Release/lib/LLVMHello.so':
> ./Release/lib/LLVMHello.so: undefined symbol:
> _ZNK4llvm12FunctionPass17createPrinterPassERNS_11raw_ostreamERKSs
> -load request ignored.
>
> Is it a known problem? How I should fix it?
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list