Hi, I have two files, in one I declare the variable SEED as such:
;file1.asm
.MODEL SMALL,BASIC
.FARDATA RAND_DATA
SEED DW ?
.CODE
;Some code
END
And in the other I try to reference the variable
;file2.asm
.MODEL SMALL,BASIC
EXTERNDEF SEED:WORD
FOO PROC FAR PUBLIC USES DX,DS
MOV SEED,DX
FOO ENDP
END
When I try to compile both files using the code
ml file1.asm file2.asm io.lib
I get the following error:
error L2029: 'SEED' : unresolved external
What am I doing wrong?
Thank you!