home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / dec / 6141 < prev    next >
Encoding:
Text File  |  1992-11-24  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.sys.dec
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!ninja!dirac.zso.dec.com!newkerk
  3. From: newkerk@zso.dec.com (Oscar Newkerk)
  4. Subject: Re: C++, DECstations, and Motif (Q)
  5. Message-ID: <1992Nov23.235553.4366@ninja.zso.dec.com>
  6. Lines: 33
  7. Sender: newkerk@dirac.zso.dec.com (Oscar Newkerk)
  8. Nntp-Posting-Host: dirac.zso.dec.com
  9. Reply-To: newkerk@zso.dec.com
  10. Organization: Digital Equipment Corporation
  11. References:  <3804@creatures.cs.vt.edu>
  12. Date: Mon, 23 Nov 1992 23:55:53 GMT
  13.  
  14.  
  15. In article <3804@creatures.cs.vt.edu>, tlee@csgrad.cs.vt.edu (Timothy Lee) writes:
  16. >From: tlee@csgrad.cs.vt.edu (Timothy Lee)
  17. >Newsgroups: comp.sys.dec,comp.windows.x.motif,comp.windows.x,comp.std.c++,comp.lang.c++
  18. >Subject: C++, DECstations, and Motif (Q)
  19. >Organization: VPI&SU Computer Science Department, Blacksburg, VA
  20.  
  21. Writes.
  22.  
  23. >I have difficulties getting c++ compilers (CC, gcc, g++) to compile C++
  24. >programs that contain X/Motif resources.  Example:
  25. >
  26. >    I have a C++ program that compiles and run correctly on a DECstation.
  27. >    After I add "#include <X11/Intrinsic.h>" (or any other X/Motif-related
  28. >    ones) to the source code, all of the above mentioned compilers will give 
  29. >    me compilation errors pointing to "Xlib.h".   There is no need to
  30. >    actually invoke a function call or use any X/Motif-defined type for
  31. >    erros to occur.
  32. >
  33. >There is no problem running C++ program with Motif/X calls in RS/6000, but
  34. >problems arise in all the DECstations that I can test on.  These DECs are
  35. >running ULTRIX 4.1, and the include files are located in the DEC designated
  36. >directories.
  37. >
  38. >
  39.  
  40. I think that your basic problem is that the Motif header files are not set up
  41. for C++.  If you get the latest version of the DEC C++ compiler ( Version 1.2
  42. shipping in December) then it includes the Motif header files that will work
  43. with DEC C++.  I know that these work with DEC C++, I don't know if they have 
  44. been tested with g++ or any other C++ implementation.
  45.  
  46. Note also that these headers are for Motif V1.1.3
  47.