[LLVMdev] Linking problem in a pass
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...
More information about the llvm-dev