<div dir="ltr">Hi,<div><br></div><div>I have written a checker in clang and some C++ code which is to be used by the checker. I have been able to build the C++ code into a static (abc.a) library through the clang Make system by following the structure of clang Makefiles.</div>
<div>But, I get linker error when I refer something in the C++ code from the checker, because clangStaticAnalyzerCheckers.a is not linked to my abc.a</div><div><br></div><div>I tried a couple of things:</div><div><br></div>
<div>- I had put my code at the examples/wpa directory level and had used the USEDLIBS option in the StaticAnalyzer/Checkers/Makefile</div><div>- Put my code at Checkers directory level under, StaticAnalyzer thinking that, the way clangStaticAnalyzerCore is getting linked to the   clangStaticAnalyzerCheckers, same would happen for abc.a</div>
<div><br></div><div>In both the cases, abc.a was built but linking is the problem.</div><div><br></div><div>Please guide me on the clang make system.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Cheers,<div dir="ltr">
<div>Tarun </div>
<div><br></div></div><br>
</div></div>