Hi there,<br><br>It will be appreciated if you help me :<br><br>I need to call an external function in LLVM bitcode but don't know how :<br>
<br>;ModuleID = 'm1'<br>define i32 @main() {
<br>entry:   <br>%tmp0 = call i32 @MyOwnFunction()<br> ret i32 0<br> }<br> declare i32 @MyOwnFunction()<br><br>I use below codes to run it<br><br>$ llvm-as -f m1 -o m1.bc<br>$ lli 1.bc<br><br>(before it I have compiled MyOwnFunction module) <br>

<br>when I run this program i receive this error : <br>LLVM ERROR: Program used external function 'MyOwnFunction' which could not be resolved!<br>
<br>I know it can not find this external function but I don't know how 
to define this function in another module and use it in my modules. i
 used below code for the other module :<br><br>;ModuleID = 'MyOwnFunction'<br>
define i32 @MyOwnFunction() {
<br>
entry:   <br>
 ret i32 55<br>
 }<br>
<br>should i use any especial switch to compile or what should i chane in my codes? I received error by below command also :<br><br>$ lli -load MyOwnFunction.bc m1.bc<br>