[LLVMdev] Linking problem in a pass

Welson Sun welson.sun at gmail.com
Wed Feb 29 21:03:42 PST 2012

My pass uses another class which is defined in a separate .h file, which
sits in the same folder as the pass .cpp file. The pass compiles fine, but
when using the pass "opt -load ...", there is an error: opt symbol lookup
error  .... undefined symbol xxx,  where xxx is the class name. It looks
like that class file's object file is not linked into the pass.so file. How
should I change the Makefile to make the linking happen?

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

More information about the llvm-dev mailing list