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

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 16 08:06:25 PDT 2016


> What is the reason of this error ?

Looks like you forgot to include "-fno-rtti" when compiling your libMyHello.so:

$ c++filt _ZTIN4llvm12FunctionPassE
typeinfo for llvm::FunctionPass

(Alternatively, if you really use RTTI you could recompile LLVM with
it enabled; it's disabled by default for performance reasons)

Cheers.

Tim.


More information about the llvm-dev mailing list