home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!wupost!spool.mu.edu!sgiblab!daver!dlb!shawn!root
- From: root@shawn.uucp (Mark Jeghers -- UNIX/X/Motif Contractor)
- Subject: Re: Problem with C++ keywords in motif include files
- Message-ID: <1992Dec25.092057.1213@shawn.uucp>
- Organization: Mark Jeghers -- UNIX/X/Motif Contractor
- References: <1hb5fvINNlsu@agate.berkeley.edu>
- Distribution: inet
- Date: Fri, 25 Dec 92 09:20:57 GMT
- Lines: 25
-
- ewang@cory.Berkeley.EDU (Edward S.T. Wang) writes:
-
-
- >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
-
- This is a private header file, not meant to be included in your program.
- By including it, you break the encapsulation of the Xt architecture.
- Of all places, a C++ program is not a place where we relish the violation
- of encapsulated data...:-)
-
- >In file Xm/Traversal.h,
- >the struct _XmFocusMovedCallbackStruct contains a Widget called "new".
-
- Hmmm...you got me here. I don't know if any public headers include
- this or not, probably easy enough to check. In the event that it is
- only included by private header files, then removing X11/ShellP.h
- might do the trick - there's one way to find out...
-
- Mark Jeghers
- UNIX/X/Motif Contractor
- 408-281-4823 [voicemail]
-
-