<div dir="ltr">Hi, <div><br></div><div>I have written a c program which accesses sqlite database.</div><div><br></div><div>Normally I compile the program as </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

$ clang  insertselect.c  -l sqlite3 </blockquote><div><br></div><div>To emit-llvm I use:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 $ clang  insertselect.c  -S -emit-llvm </blockquote><div><br></div><div>How do I link the sqlite3 library so that llvm can generate IR with the IR being linked to the external library?</div><div><br></div><div>Thanks for your help?</div>

<div><br></div><div>Thanks</div><div>Prakash </div>















</div>