home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8213 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.3 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!cory.Berkeley.EDU!ewang
  2. From: ewang@cory.Berkeley.EDU (Edward S.T. Wang)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Problem with C++ keywords in motif include files
  5. Date: 24 Dec 1992 01:58:23 GMT
  6. Organization: University of California, at Berkeley
  7. Lines: 20
  8. Distribution: inet
  9. Message-ID: <1hb5fvINNlsu@agate.berkeley.edu>
  10. NNTP-Posting-Host: cory.berkeley.edu
  11.  
  12.  
  13. I'm trying to compile a C++ program using Motif 1.1.3 on SunOS 4.1.1, and
  14. I'm running into compilation errors due to the use of C++ keywords such
  15. as "class" and "new" in the include files.
  16.     In file X11/ShellP.h, the struct ApplicationShellPart contains a
  17. char * called "class" which is a C++ keyword.  In file Xm/Traversal.h,
  18. the struct _XmFocusMovedCallbackStruct contains a Widget called "new".
  19.  
  20.     The program compiles on a C compiler; however, I'd like to get
  21. this program to interface with C++ code so preferably I'd like a solution
  22. that would allow me to compile everything using a C++ compiler.  Is there 
  23. a simple way to solve this problem, or am I stuck?  If I can't use a C++ 
  24. compiler all the way, I'll be in the unfortunate position of having to call 
  25. C++ functions from within a C program(for the callbacks), and I don't even 
  26. want to start thinking of that problem!
  27.  
  28.  
  29.  
  30.                             Thanks,
  31.                             Ed
  32.