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

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!wupost!spool.mu.edu!sgiblab!daver!dlb!shawn!root
  3. From: root@shawn.uucp (Mark Jeghers -- UNIX/X/Motif Contractor)
  4. Subject: Re: Problem with C++ keywords in motif include files
  5. Message-ID: <1992Dec25.092057.1213@shawn.uucp>
  6. Organization: Mark Jeghers -- UNIX/X/Motif Contractor
  7. References: <1hb5fvINNlsu@agate.berkeley.edu>
  8. Distribution: inet
  9. Date: Fri, 25 Dec 92 09:20:57 GMT
  10. Lines: 25
  11.  
  12. ewang@cory.Berkeley.EDU (Edward S.T. Wang) writes:
  13.  
  14.  
  15. >I'm trying to compile a C++ program using Motif 1.1.3 on SunOS 4.1.1, and
  16. >I'm running into compilation errors due to the use of C++ keywords such
  17. >as "class" and "new" in the include files.
  18. >    In file X11/ShellP.h, the struct ApplicationShellPart contains a
  19.  
  20. This is a private header file, not meant to be included in your program.
  21. By including it, you break the encapsulation of the Xt architecture.
  22. Of all places, a C++ program is not a place where we relish the violation
  23. of encapsulated data...:-)
  24.  
  25. >In file Xm/Traversal.h,
  26. >the struct _XmFocusMovedCallbackStruct contains a Widget called "new".
  27.  
  28. Hmmm...you got me here.  I don't know if any public headers include 
  29. this or not, probably easy enough to check.  In the event that it is
  30. only included by private header files, then removing X11/ShellP.h
  31. might do the trick - there's one way to find out...
  32.  
  33. Mark Jeghers
  34. UNIX/X/Motif Contractor
  35. 408-281-4823 [voicemail]
  36.  
  37.