www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000022

When Created: 09/11/1995 06:19:49
Against DJGPP version: 2.00.beta3
By whom: dgardner@mcsilo.ilo.dec.com
Abstract: _DOSERROR struct in dos.h has a member called "class", C++ hates this
The _DOSERROR struct in the "dos.h" header file:

struct _DOSERROR {
  int  exterror;
  char class;
  char action;
  char locus;
};
#define DOSERROR _DOSERROR

The second member "char class" uses the C++ keyword "class" and
causes an error when compiling with gpp.

Solution added: 09/11/1995 06:21:45
By whom: dgardner@mcsilo.ilo.dec.com
Redefine the _DOSERROR struct using a name other than "class",
e.g. errorclass, errclass, category, etc.

Workaround added: 09/11/1995 06:22:48
By whom: dgardner@mcsilo.ilo.dec.com
Edit dos.h and rename the offending member.

Fixed in version 2.00.beta4 on 10/08/1995 20:26:37
By whom: dj@delorie.com



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010