[LLVMdev] Convert C code with external library access to llvm

Prakash Premkumar prakash.prax at gmail.com
Wed Sep 3 00:27:37 PDT 2014


Hi,

I have written a c program which accesses sqlite database.

Normally I compile the program as

$ clang  insertselect.c  -l sqlite3


To emit-llvm I use:

>  $ clang  insertselect.c  -S -emit-llvm


How do I link the sqlite3 library so that llvm can generate IR with the IR
being linked to the external library?

Thanks for your help?

Thanks
Prakash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140903/579fc29c/attachment.html>


More information about the llvm-dev mailing list