<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Thanks John, the problem was that the constructor was not defined. That fixed the prob.<br>::Saman<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> John Criswell <criswell@cs.uiuc.edu><br><b><span style="font-weight: bold;">To:</span></b> LLVM Developers Mailing List <llvmdev@cs.uiuc.edu><br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 23, 2009 4:18:12 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] LLVM Module Pass problem!<br></font><br>
Saman Zonouz wrote:<br>> Dear All,<br>><br>> I am new to LLVM and try to write a Module pass. In the same .cpp file<br>> I am defining a class.<br>> The problem is that whenever I instantiate an object from the class I<br>> get the following error while running the pass:<br>><br>> opt: symbol lookup error: ../llvm/Debug/lib/MyPass.so: undefined<br>> symbol: _ZN10Thread_MyPassC1Ev<br>><br>> The pass is compiled correctly but does not run. Could you someone<br>> please let me know what is wrong?<br>Are the methods of your class defined within the same .cpp file or in<br>another .cpp file? It appears that your pass is referencing those<br>methods but that they are not included within <a target="_blank" href="http://MyPass.so">MyPass.so</a>.<br><br>-- John T.<br><br>><br>> Thanks in advance,<br>> ::Saman<br>><br>><br><br>_______________________________________________<br>LLVM Developers mailing
list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span> <a target="_blank" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a></span><br><span><a target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></span><br></div></div></div><br>
</body></html>