Mail Archives: djgpp/1994/01/31/12:36:33
TzeKih Tsai (mbsfptt AT menhpd DOT eng DOT man DOT ac DOT uk) writes:
>
> Hi,
> I have got a problem with PDcurses. I just download it and compile it
> with djgpp 1.11m2 using Contura 4/25 and dos6. Everything seem to be okay,
> and it generate all the demo programs without any error. However it did
> give some warnings about the include file <time.h> of having empty
> declaration.
The <time.h> has not been updated in dj111m2. I've sent DJ already
a patch for fixing the mentioned problem. You should change one line
in <time.h> to get rid of the warnings:
OLD: #ifndef _stddef_h (in <time.h> )
NEW: #ifndef _STDDEF_H
> Apart from that it produce the neccessary .exe files for the
> demo programs. When I try to execute one of the demo, firework, I got the
> following error,
>
> Unsupported INT 0x0d
> General Protection Fault at eip=7717
> eax=0000fe00 ebx=00000008 ecx=00000607 edx=00001800 esi=00000000 edi=00000000
> ebp=7ffffb1c esp=7ffffafc cs=d8 ds=48 es=48 fs=48 gs=48 ss=48 cr2=000034e0
> Call frame traceback EIPs:
> 0x00007717
> 0x00004273
> 0x00002ffd
> 0x0000191d
> 0x000011bb
>
> In fact non of the demo work on my computer. Can anyone help ?
You have to disable (or remove) the DESQview shadow buffer routine,
which uses int86x(), in PDCurses source file 'private/_queryad.c' as follows:
-------------------------------------------------------------------------------
/* Check for DESQview shadow buffer */
/*
regs.h.ah = 0xfe;
regs.h.al = 0;
regs.x.di = _cursvar.video_ofs;
segs.es = _cursvar.video_seg;
int86x(0x10, ®s, ®s, &segs); ?????
_cursvar.video_ofs = regs.x.di;
_cursvar.video_seg = segs.es;
*/
-------------------------------------------------------------------------------
When you recompile this file (with the above patch), and rebuild the
PDCurses library, all programs work correctly with DJGPP 1.11m2.
I use it myself...
PS The programs (with the patch) even work inside DESQview ;-)
> I am new to C programming. Thanks in advance.
>
> TzeKih Tsai
> Simon Engineering Building
> Univ. of Manchester.
>
Regards,
.^^^^^^^^ _____________________________________
| | / Pieter Kunst (P.J.) \
| _ _| / Philips Research Laboratories, \
.--(o)(o) / Building WY3, Prof. Holstlaan 4, \
|@ _) / 5656 AA Eindhoven, The Netherlands. |
| ,___| / e-mail: kunst AT prl DOT philips DOT nl /
| / \_______________________________________________/
/____\
===============================================================================
The latest version of PDCurses is 2.1 and can be obtained from:
site: ftp.gu.edu.au 132.234.1.1
files: /src/PDCurses/pdcurs21.zip
To compile the whole library with DJGPP 1.11, you'll need a copy
of DMAKE as well, which can be obtained from:
site: plg.uwaterloo.ca (129.97.140.10)
file: pub/dmake/dmake38-msdos-exe.zip
===============================================================================
- Raw text -