[comp.sys.next] cc -bsd -traditional barfs on std include files

matt@karazm.math.uh.edu (Matt Emerson) (04/10/91)

Just grabbed a bunch of BSD games off uunet, including warp. Most compiled
with no fuss, but warp needed cc -bsd -traditional (mainly for old-style
preprocessor behavior).

Anyway, stdio.h and ctype.h both elicited parse errors at places where they
declared something to be const char *, namely fdopen in stdio.h
and _ctype_[] in ctype.h. I nuked those const's and everything went ok.

Even "hello, world" wouldn't compile with cc -bsd -traditional. An oversight
which I trust is fixed in 2.[01].  I guess I ought to try to upgrade before
OD costs double again.

Back to playing hangman and robots...especially robots...

--
Matt Emerson
matt@karazm.math.uh.edu

melling@cs.psu.edu (Michael D Mellinger) (04/11/91)

In article <1991Apr10.022255.17760@menudo.uh.edu> matt@karazm.math.uh.edu (Matt Emerson) writes:

   Just grabbed a bunch of BSD games off uunet, including warp. Most compiled
   with no fuss, but warp needed cc -bsd -traditional (mainly for old-style
   preprocessor behavior).

   Anyway, stdio.h and ctype.h both elicited parse errors at places where they
   declared something to be const char *, namely fdopen in stdio.h
   and _ctype_[] in ctype.h. I nuked those const's and everything went ok.

   Even "hello, world" wouldn't compile with cc -bsd -traditional. An oversight
   which I trust is fixed in 2.[01].  I guess I ought to try to upgrade before
   OD costs double again.

   Back to playing hangman and robots...especially robots...

This is not fixed in 2.0.  Try cc ... -Dconst="" for a quick fix.

-Mike

cnh5730@maraba.tamu.edu (04/11/91)

In article <1991Apr10.022255.17760@menudo.uh.edu> matt@karazm.math.uh.edu (Matt Emerson) writes:
   Even "hello, world" wouldn't compile with cc -bsd -traditional. 


no it doesn't.
--
"Battle not with monsters, lest ye become a monster,
 and if you gaze into the abyss, the abyss gazes also into you."
	-Friedrich Wilhelm Nietzsche