[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
Single Page
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)?
-
Search the FAQ Archives
Single Page
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)?
-37- Why can't I compile my non-ANSI C program?
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).
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)?
Single Page
[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
sgi-faq@viz.tamu.edu (The SGI FAQ group)
Last Update October 22 2009 @ 05:34 AM