First post, by Exploit
When i try to link some object files with WLINK.EXE i get the following error message:
Error! E3033: directive error near
That is my code:
ONE.ASM
; PROG ONE.ASM
EXTRN TWO:FAR
.MODEL SMALL
.STACK 256
.CODE
MAIN:
MOV AH, 00
MOV DL, 34h
MOV AH, 02h
INT 21h
CALL TWO
MOV AH, 4Ch
INT 21h
END MAIN
TWO.ASM
; PROG: TWO.ASM
PUBLIC TWO
.MODEL SMALL
.STACK 256
.CODE
TWO PROC FAR
PUSH BX
PUSH CX
MOV DL, 32h
MOV AH, 02h
INT 21h
POP CX
POP BX
RET
TWO ENDP
END
JWASMR.EXE does assemble the code without errors to obj files.
The -0 option is for 8086.
C:\>jwasmr -0 one.asm two.asm
JWasm v2.14, Dec 20 2020, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
ONE.ASM: 18 lines, 2 passes, 0 ms, 0 warnings, 0 errors
TWO.ASM: 19 lines, 2 passes, 0 ms, 0 warnings, 0 errors
C:\>dir *.obj
...
ONE.OBJ
TWO.OBJ
...
But WLINK.EXE can't link them:
C:\>wlink one.asm two.asm
Open Watcom Linker Version 1.9
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
Error! E3033: directive error near 'one.asm'
C:\>
I also tried
wlink one.obj two.obj
but this didn't help either.
It might be possible, that wlink needs other paramters, but the linker command example (ot the code) is from a book that is written for MASM
and there it says i have to use:
ML CODE1.ASM CODE2.ASM
Thus i tried to adapt to WLINK.EXE but without success.