[LLVMdev] llvm-ar llvm-link
ankur deshwal
a.s.deshwal at gmail.com
Thu Feb 21 09:53:53 PST 2013
Hi,
I tried to build an llvm archive and link it against an llvm bc file.
However, it fails. Following is the procedure I followed ( abc.c is file
which calls a function whose definition is present in bcd.c)
$ clang -c -emit-llvm abc.c
$ clang -c -emit-llvm bcd.c
$ llvm-ar cr bsd.ar bcd.o
$ llvm-link abc.o bsd.ar
llvm-link: bsd.ar:1:2: error: expected integer
!<arch>
^
llvm-link: error loading file 'bsd.ar'
What am I missing here ?
Regards,
Ankur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130221/6b67d482/attachment.html>
More information about the llvm-dev
mailing list