.686                       
.model flat, stdcall     
option scoped             
option casemap :none     

    public  var1,var2,proc1

.data
var1    dd    ?
var2    dd    ?
align 4

.code

proc1  proc
mov eax,var1
add eax,var2
ret
proc1  endp

--------

-- module2 --

.686                       
.model flat, stdcall       
option scoped             
option casemap :none     
    extern  var1:dword,var2:dword,proc1:near
 
.data
align 4
.code

start:
main  proc
      mov  var1,2
      mov  var2,3
      call proc1
ret
main    endp
end start

-----------------

proc1 not found???


Posted on 2008-01-21 15:02:08 by sittingduck
declare this func
proc1  Proto

link obj files together or use .lib file
Posted on 2008-01-21 15:22:22 by Jupiter

declare this func
proc1  Proto

link obj files together or use .lib file



Thanks, it's always something simple i have forgotten.  :shock:
But expecting it to be a major fault. 8)
Posted on 2008-01-21 16:37:13 by sittingduck