<div dir="ltr">I am trying sample Hello.cpp FunctionPass but while executing observing following error:<br>Error opening './libHello.so': ./libHello.so: undefined symbol: _ZNK4llvm12FunctionPass17createPrinterPassERNS_11raw_ostreamERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE<br><br>Steps:<br><br>1. clang++ -fPIC -shared -o libHello.so -o libHello.so Hello.o<br><br>2. clang++ -emit-llvm test.cpp -c -o test.bc<br><br>3. opt -load ./libHello.so -hello -disable-output test.bc<br><br>Please let me know if I missed any intermediate step.<br><br><br>Thanks,<br></div>