[llvm-dev] FunctionPass failing with undefined symbol

hi via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 4 00:57:36 PST 2018

I am trying sample Hello.cpp FunctionPass but while executing observing
following error:
Error opening './libHello.so': ./libHello.so: undefined symbol:


1. clang++ -fPIC -shared -o libHello.so -o libHello.so Hello.o

2. clang++ -emit-llvm test.cpp -c -o test.bc

3. opt -load ./libHello.so -hello -disable-output test.bc

Please let me know if I missed any intermediate step.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180104/53c74386/attachment.html>

More information about the llvm-dev mailing list