[LLVMdev] [Need your help]
eli.friedman at gmail.com
Fri Oct 17 10:05:03 PDT 2008
On Fri, Oct 17, 2008 at 9:46 AM, <kangjing820516 at sina.com> wrote:
> I tried to compile a C programme test.c with llvm-gcc by task:
> [root at localhost mylib]# llvm-gcc -emit-llvm test.c -Llibmylib.a -c -o
The -L flag doesn't do anything here.
> [root at localhost mylib]# lli test.bc
> after running the command "lli test.bc",print the error info as follows:
> ERROR: Program used external function 'gt' which could not be resolved!
Of course; where do you expect it to find the function?
lli only supports loading LLVM bc files and dynamic libraries.
More information about the llvm-dev