home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12463 < prev    next >
Encoding:
Text File  |  1992-08-15  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!umn.edu!AHPCRC.umn.edu!felix
  3. From: felix@AHPCRC.umn.edu (Paul Felix)
  4. Subject: Re: compiling X/Motif with C++ v2.1.1
  5. Message-ID: <1992Aug15.213352.15934@news2.cis.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: pi32.arc.umn.edu
  8. Organization: AHPCRC
  9. References:  <1992Aug13.192349.2810@vlsi.polymtl.ca>
  10. Date: Sat, 15 Aug 1992 21:33:52 GMT
  11. Lines: 29
  12.  
  13. > I'm trying to compile a program written in mixed model
  14. > with SGI's C++ v2.1.1 but for every call to a X command 
  15. > the compiler gives the next error :
  16. >     error : unexpected 1 argument for Xt...
  17.  
  18. It appears that the function prototypes are not getting defined.
  19.  
  20. Wow, it's hard to get that error. I can't get that error on my SGI
  21. with Irix 4.0.1 and SGI's C++. Is your compiler finding the X include
  22. files in /usr/include/X11, or is it finding another set that you got
  23. from somewhere else?
  24.  
  25. If you're not using the Imake utility, I recommend that you do. Make
  26. sure that you define the macros FUNCPROTO and XTFUNCPROTO. This should
  27. ensure that the prototypes get defined in the X11R4 include files on
  28. your Indigo or on any other machine.
  29.  
  30. -- 
  31.  
  32. Paul
  33. ________________________________________________________________________
  34.                                                                            
  35.  Paul Felix                                        felix@ahpcrc.umn.edu
  36.  AHPCRC/University of Minnesota                    (612) 626-8084
  37.  1100 Washington Ave. So.
  38.  Minneapolis, MN 55415
  39. ________________________________________________________________________
  40.