Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!bacchus.pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: X11 and C++ Message-ID: <1990Oct5.101350@wsl.dec.com> Date: 5 Oct 90 17:13:50 GMT References: Sender: news@wrl.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 20 In article , csmoe@mtsu.EDU (Miss. Monisha Guglani) writes: |> I'm trying to use the Xlib files to be included in C++ |> and because of the declaration of class as an integer within |> the Xlib I have a bunch of errors . (Class is reserved word in c++) The X11R4 Xlib has stuff like this in it: #if defined(__cplusplus) || defined(c_plusplus) int c_class; /* C++ class of screen (monochrome, etc.) */ #else int class; /* class of screen (monochrome, etc.) */ #endif so using it with C++ shouldn't be a problem. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee