🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Christian J. Callsen Mon, 31 Aug 1992 16:43
lex and cc++ woes..
#933
Author: Christian J. Callsen
Date: Mon, 31 Aug 1992 16:43
34 lines
1722 bytes
Hi Netters!

For the record: NeXTstation TURBO Mono, NeXTstep 2.2 Extended.

I am currently experiencing a problem with lex on the NeXT -- or
rather, the skeleton file '/usr/lib/lex/ncform'. Alas it will *not*
compile with the 'cc++' compiler -- _flsbuf and _filbuf (declared in
stdio.h) are declared something like:

extern int _filbuf();
extern int _flsbuf();

.. when they should really have been declared with 1 and 2 arguments,
respectively. Now as 'cc' also handles 'old' prototypes, it actually
flies through, but 'cc++' reports "too many arguments to function" and
prompty refuses to compile. So I guess this is really a bug in (the
old) cc++ or what?

Am I doing something wrong?

What's the easiest (and best?) fix for this `problem'?
 Fix stdio.h myself?
 Patch the cc++ binary to handle old-style decls?
 Say my prayers and hope the problem will go away by itself?

Any opinions?

Chris J. Callsen
--
   __               | Christian J. Callsen  [ callsen@biobio.cs.uiuc.edu ]
  /  ) /            | Currently visiting: U of Illinois, Urbana-Champaign,
 /    /_  __  o _   | Dept. of Comp. Sci., 1304 W. Springfield Avenue,
(__/ / /_/ (_<_/_)_ | Urbana, IL 61801, USA     { Sm:^>le and be Happy Today! }
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads