我是刚开始学DOS下编程,听说以前很多DOS游戏就是用WATCOM C/C++开发的。
好象说DOS4GW下可以任意访问内存。
可我用命令: wcl 文件名 无法成功编译。
显示为
C:\watcom\src>wcl hello.c
Watcom C/C++16 Compile and Link Utility Version 11.0c
Copyright by Sybase, Inc., and its subsidiaries, 1988, 2002.
All rights reserved. Watcom is a trademark of Sybase, Inc.
wcc HELLO.C
INTERRUPT 0DH, GENERAL PROTECTION FAULT possible illegal address
error code = 0000
eax = 00003E00 esi = 000000C7 flags = 3246 ds = 017F
ebx = FABF0006 edi = 000000C0 eip = 0000357B es = 01C7
ecx = 00000000 ebp = 00C09FFF cs = 019F fs = 01AF
edx = 00000000 esp = 00000112 ss = 017F gs = 0000Error: Comp
iler returned a bad status compiling 'HELLO.C'
网上找不到原因和关于这方面资料。
那位高手能发份资料给我或上传给大家共享。
onmymail@163.com