Xref: utzoo comp.lang.c++:6460 comp.windows.x:18406 gnu.g++:655 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!uunet!brunix!sdm From: sdm@cs.brown.edu (Scott Meyers) Newsgroups: comp.lang.c++,comp.windows.x,gnu.g++ Subject: Re: X11 and C++ Message-ID: <29194@brunix.UUCP> Date: 14 Feb 90 05:56:23 GMT References: <943@imec.UUCP> <25D887FF.273@paris.ics.uci.edu> <29158@brunix.UUCP> Sender: news@brunix.UUCP Reply-To: sdm@cs.brown.edu (Scott Meyers) Organization: Brown University Department of Computer Science Lines: 15 The X11R4 header files come with C++ declarations already in them. For example, this is from Xlib.h: #ifdef __cplusplus /* do not leave open across includes */ extern "C" { /* for C++ V2.0 */ #endif I don't do X programming myself, so I can't vouch for how well the new include files work with C++ (the distribution documentation says the support isn't part of the official standard yet), but I know at least one person doing X programming who's used the headers with cfront 2.0 without any problems. Scott sdm@cs.brown.edu