This is Crystal. I have some questions about llvm-gcc. Could you please give me some advice? Thanks in advance.
llvm-gcc (GCC) 4.2.1
gcc (GCC) 4.1.2
I tried to compile a C programme test.c with llvm-gcc by task:
[root@localhost mylib]# llvm-gcc -emit-llvm test.c -Llibmylib.a -c -o test.bc
[root@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!
Static libraries are produced by these 3 ways below, but always got the same issue:
I have to analyse c program with some static libraries by LLVM bitcode files .
Here is my test code: