Up: SGI apps Frequently Asked Questions (FAQ)
Next: -36- Where's CHILD_MAX in IRIX 4.0.5?
Previous: -34- What are the correct versions of the Irix Development Option (IDO) and Fortran for current versions of IRIX?
Subject:   -35- Why can't I compile my non-ANSI C program?
Date: 11 Jun 1995 00:00:01 EST

  SGI's C compiler is ANSI C by default in IRIX 4 and later. Use the
  '-cckr' option to compile K&R (traditional) C. You can do this most
  easily by setting the environment variable SGI_CC to "-cckr" or by
  editing the application's Makefile, often by adding "-cckr" to the
  CFLAGS variable.

  A related problem is that Makefiles generated by 'imake' most often
  use 'cc -cckr -prototypes'; missing or incorrect prototypes usually
  just generate pages of warnings but may cause an unrecoverable
  error.  You can often work around this by removing "-prototypes" from
  the line where it appears in the Makefile (not the Imakefile).

Up: SGI apps Frequently Asked Questions (FAQ)
Next: -36- Where's CHILD_MAX in IRIX 4.0.5?
Previous: -34- What are the correct versions of the Irix Development Option (IDO) and Fortran for current versions of IRIX?