LLVM ERROR: Program used external function 'foo' which could not be resolved!

Hi All,

Hope this question finds you

I typed this command
lli Main.ll Mod.ll

to execute program in Mod.ll that contains three functions and the main function is in Main.ll

but I’ve got the following error

LLVM ERROR: Program used external function ‘foo’ which could not be resolved!

Thanks in advance

Rasha Omar <rasha.sala7@gmail.com> writes:

I typed this command
lli Main.ll Mod.ll

to execute program in Mod.ll that contains three functions and the main
function is in Main.ll

but I've got the following error

LLVM ERROR: Program used external function 'foo' which could not be
resolved!

lli expects just one bitcode file (see `lli --help').

To combine multiple bitcode files into one, use llvm-link.