home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5884 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.6 KB  |  46 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!convex!darwin.sura.net!wupost!uwm.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!m.cs.uiuc.edu!callsen
  3. From: callsen@cs.uiuc.edu (Christian J. Callsen)
  4. Subject: lex and cc++ woes..
  5. Message-ID: <CALLSEN.92Aug31104358@ganges.cs.uiuc.edu>
  6. Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager))
  7. Organization: Department of Computer Science, UIUC
  8. Distribution: comp
  9. Date: Mon, 31 Aug 1992 16:43:58 GMT
  10. Lines: 34
  11.  
  12.  
  13. Hi Netters!
  14.  
  15. For the record: NeXTstation TURBO Mono, NeXTstep 2.2 Extended.
  16.  
  17. I am currently experiencing a problem with lex on the NeXT -- or
  18. rather, the skeleton file '/usr/lib/lex/ncform'. Alas it will *not*
  19. compile with the 'cc++' compiler -- _flsbuf and _filbuf (declared in
  20. stdio.h) are declared something like:
  21.  
  22. extern int _filbuf();
  23. extern int _flsbuf();
  24.  
  25. .. when they should really have been declared with 1 and 2 arguments,
  26. respectively. Now as 'cc' also handles 'old' prototypes, it actually
  27. flies through, but 'cc++' reports "too many arguments to function" and
  28. prompty refuses to compile. So I guess this is really a bug in (the
  29. old) cc++ or what?
  30.  
  31. Am I doing something wrong?
  32.  
  33. What's the easiest (and best?) fix for this `problem'?
  34.  Fix stdio.h myself?
  35.  Patch the cc++ binary to handle old-style decls?
  36.  Say my prayers and hope the problem will go away by itself?
  37.  
  38. Any opinions?
  39.  
  40. Chris J. Callsen
  41. --
  42.    __               | Christian J. Callsen  [ callsen@biobio.cs.uiuc.edu ]
  43.   /  ) /            | Currently visiting: U of Illinois, Urbana-Champaign,
  44.  /    /_  __  o _   | Dept. of Comp. Sci., 1304 W. Springfield Avenue,
  45. (__/ / /_/ (_<_/_)_ | Urbana, IL 61801, USA     { Sm:^>le and be Happy Today! }
  46.