[llvm-dev] Undefined symbol error while running the pass

Ansar K.A. via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 16 06:34:13 PDT 2016


Hi,

When I run my pass I am getting the following error:

*command used to run:*

*opt -load /home/batman/llvm/build/lib/libMyHello.so -MyHello <prgrm1.bc >
/dev/null*

*Error*:

*Error opening '/home/batman/llvm/build/lib/libMyHello.so':
/home/batman/llvm/build/lib/libMyHello.so: undefined symbol:
_ZTIN4llvm12FunctionPassE*
*  -load request ignored.*
*opt: Unknown command line argument '-MyHello'.  Try: 'opt -help'*
*opt: Did you mean '-regalloc'?*

What is the reason of this error ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160316/c7473a3e/attachment.html>


More information about the llvm-dev mailing list