home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8231 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.2 KB  |  29 lines

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