Mail Archives: djgpp/2001/08/03/14:30:06.2
> I have just re-installed my djgpp gcc and now I'm not capable of compiling
> anything, even a simple program who prints "Hello". I have already read the
> FAQs but I haven't solved the problem yet.
>
> The operating system I use is Windows 2000 professional and I have already
> had the gcc installed but now it doesn't work.
If NTVDM is crashing, the easiest thing to do is to patch NTVDM.EXE if
you are allowed to fix the box. My Win2000 box is pretty stable with
the patch below. The NTVDM for Windows 2000 has a bug (as does XP RC1)
which aborts when you nest DPMI images. make/gcc/cc1 is a perfect
example of nesting.
Included below are binary diffs to NTVDM.EXE to work around the bug in
Windows 2000. Eventually I'll provide an executable to do it. You must
either disable file protection or also patch the ones in dllcache.
Comparing files ntvdm.sp2_pat and NTVDM.SP2
0004C89F: 58 AC
0004C8A0: 5E E6
C:\WINNT\system32>fc /b ntvdm.exe *.exo
Comparing files ntvdm.EXE and ntvdm.EXO
0004C864: 58 AC
0004C865: 5E E6
- Raw text -