home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / dec / 5947 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.6 KB

  1. Xref: sparky comp.sys.dec:5947 comp.windows.x.motif:7470 comp.windows.x:19119 comp.std.c++:1561 comp.lang.c++:16238
  2. Path: sparky!uunet!vtserf!creatures!csgrad.cs.vt.edu!tlee
  3. From: tlee@csgrad.cs.vt.edu (Timothy Lee)
  4. Newsgroups: comp.sys.dec,comp.windows.x.motif,comp.windows.x,comp.std.c++,comp.lang.c++
  5. Subject: C++, DECstations, and Motif (Q)
  6. Message-ID: <3804@creatures.cs.vt.edu>
  7. Date: 13 Nov 92 23:56:02 GMT
  8. Sender: usenet@creatures.cs.vt.edu
  9. Followup-To: comp.sys.dec
  10. Organization: VPI&SU Computer Science Department, Blacksburg, VA
  11. Lines: 27
  12.  
  13. Hi everyone,
  14.  
  15. I have difficulties getting c++ compilers (CC, gcc, g++) to compile C++
  16. programs that contain X/Motif resources.  Example:
  17.  
  18.     I have a C++ program that compiles and run correctly on a DECstation.
  19.     After I add "#include <X11/Intrinsic.h>" (or any other X/Motif-related
  20.     ones) to the source code, all of the above mentioned compilers will give 
  21.     me compilation errors pointing to "Xlib.h".   There is no need to
  22.     actually invoke a function call or use any X/Motif-defined type for
  23.     erros to occur.
  24.  
  25. There is no problem running C++ program with Motif/X calls in RS/6000, but
  26. problems arise in all the DECstations that I can test on.  These DECs are
  27. running ULTRIX 4.1, and the include files are located in the DEC designated
  28. directories.
  29.  
  30. Please don't tell me it *should* work.  I tried all I can think of, including
  31. putting "extern" around the include files.  If someone has actually get it to 
  32. work, please help.
  33.  
  34. Please send your helpful reply to:
  35.  
  36.     tlee@csgrad.cs.vt.edu        Tim Lee
  37.  
  38. P.S. Even the unmodifed source code from Douglas Young choked.  Young wrote a
  39. book on getting C++ to work under Motif. 
  40.