<div dir="ltr"><div><div><div><div>Hello,<br></div>I am developing two llvm libraries (they should as MODULE .so at he end). Still , they are situated in one cmake project and at some point I want to use one pass (library) inside another. Simply including h files and getting the result of llvm analysis leads to errors:<br><br>Error opening '../build/MyCFGPass/libMyCFGPass.so': ../build/MyCFGPass/libMyCFGPass.so: undefined symbol: _ZTVN8bitwidth16OptimizeBitwidthE<br></div> - one pass does not see another at all.<br><br></div>I can't link this library because it is MODULE but I also can't create a second static library as in this case the pass will try to register itself twice )(in .a and .so files).<br><br></div>What can be the problem that I can't use one class inside another and what can be a solution to this?<br><div><div><div><div><br></div><div>I have:<br></div><div>passA.cpp <- includes "passB.h",<br></div><div>passB.h, passB.cpp,<br></div><div>I want to have passA.so,  passB.so, passA uses the analysis from passB.<br><br></div><div>Does the fact that I defined passB under namespace influence the problem?<br></div></div></div></div></div>