Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!nrl-cmf!ames!apple!well!rchrd From: rchrd@well.UUCP (Richard Friedman) Newsgroups: comp.sys.apollo Subject: Re: Predefined symbols in C preprocessor and apollo_$std.n on 10.1 Message-ID: <11795@well.UUCP> Date: 23 May 89 03:31:00 GMT References: <11792@well.UUCP> Reply-To: rchrd@well.UUCP (Richard Friedman) Distribution: comp Organization: RCHRD 2855 Telegraph #415 Berkeley CA 94705 Lines: 28 As soon as I wrote the original note about the preprocessor symbols aegis and apollo always being defined with the C compiler /bin/cc, I realized that I should try the -U option on the cc command. That worked. I now have KERMIT working on 10.1 I will report on KERMIT in another note targeted at KERMIT. As far as cc is concerned: 1) I dont think /usr/include/apollo_$std.h is being read automatically by /bin/cc as described by the manual. (I'll check it again.) 2) The symbols apollo and aegis are predefined by /bin/cc (perhaps cc is wired that way but I couldnt find any text file other than apollo_$std.h that defines them.) 3) The symbol apollo should not be undefined because many of the standard texts (stdio.h, etc.) are conditional on "apollo" and will not compile if it isnt defined. 4) To undefine aegis (which you might want to do on BSD for programs written to run on aegis or std BSD), you must have -Uaegis on the cc command line. Now go see my note on KERMIT. (Are we having fun yet. I hope my boss never gets to see how much time I've wasted getting all this going! And it was my idea to upgrade to 10.1 ! ) -- ...Richard Friedman rchrd@well.uucp (Pacific-Sierra Research/Berkeley, CA.) also: {lll-crg,pacbell,hplabs}!well!rchrd