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.ASMEXTRN TWO:FAR.MODEL SMALL.STACK 256.CODEMAIN:MOV AH, 00MOV DL, 34hMOV AH, 02hINT 21hCALL TWOMOV AH, 4ChINT 21hEND MAIN
TWO.ASM
; PROG: TWO.ASMPUBLIC TWO.MODEL SMALL.STACK 256.CODETWO PROC FARPUSH BXPUSH CXMOV DL, 32hMOV AH, 02hINT 21hPOP CXPOP BXRETTWO ENDPEND
JWASMR.EXE does assemble the code without errors to obj files.
The -0 option is for 8086.
C:\>jwasmr -0 one.asm two.asmJWasm 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 errorsTWO.ASM: 19 lines, 2 passes, 0 ms, 0 warnings, 0 errorsC:\>dir *.obj...ONE.OBJTWO.OBJ...
But WLINK.EXE can't link them:
C:\>wlink one.asm two.asmOpen Watcom Linker Version 1.9Portions 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.