Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

SGI apps Frequently Asked Questions (FAQ)
Section - -37- Why can't I compile my non-ANSI C program?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Restaurant inspections ]


Top Document: SGI apps Frequently Asked Questions (FAQ)
Previous Document: -36- What are the correct versions of the Irix Development Option (IDO) and Fortran for current versions of IRIX?
Next Document: -38- Why doesn't application X understand NIS (Yellow Pages)?
See reader questions & answers on this topic! - Help others by sharing your knowledge

  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).

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA