home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!think.com!enterpoop.mit.edu!paperboy.osf.org!juliet!daniel
- From: daniel@juliet.osf.org (Daniel Dardailler)
- Subject: Re: Problem with C++ keywords in motif include files
- Message-ID: <1992Dec28.150657.14014@osf.org>
- Sender: daniel@juliet (Daniel Dardailler)
- Organization: Open Software Foundation, Motif Team
- References: <1hb5fvINNlsu@agate.berkeley.edu>
- Distribution: inet
- Date: Mon, 28 Dec 1992 15:06:57 GMT
- Lines: 16
-
-
- |> I'm trying to compile a C++ program using Motif 1.1.3 on SunOS 4.1.1, and
- |> I'm running into compilation errors due to the use of C++ keywords such
- |> as "class" and "new" in the include files.
- |> In file X11/ShellP.h, the struct ApplicationShellPart contains a
- |> char * called "class" which is a C++ keyword. In file Xm/Traversal.h,
- |> the struct _XmFocusMovedCallbackStruct contains a Widget called "new".
-
- Traversal.h is not a public header file.
- It is not mentioned in any documention, but unfortunately, it has been
- used in the past in our own demos, and people have often been cut&pasting
- from those.
- Remove it from your application and you'll be fine.
-
- For the story, the R5 version of X11/ShellP.h now compiles in C++ (as do
- all *.h files in Xt and Xlib)
-