Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!aurora!amelia!ames!ll-xn!oberon!skat.usc.edu!blarson From: blarson@skat.usc.edu (Bob Larson) Newsgroups: comp.lang.c Subject: Re: Primos portability report Message-ID: <7048@oberon.USC.EDU> Date: 18 Feb 88 20:20:34 GMT References: <24599@cca.CCA.COM> Sender: news@oberon.USC.EDU Reply-To: blarson@skat.usc.edu (Bob Larson) Organization: USC AIS, Los Angeles Lines: 31 In article <24599@cca.CCA.COM> g-rh@CCA.CCA.COM.UUCP (Richard Harter) writes: >Here is a gotcha for C programs which will be ported to PRIMOS. >#include >FILE *ifptr = stdin; >main(...) {....} >breaks BIND, which crashes with the approximate message >"IOBUF_: Attempt to reference undefined common." I've run into this problem before. std(in,out) cannout be assigned to FILE * variables other than in main. (Yes, I consider this a major bug. Unfortunatly, prime doesn't always agree with me.) >I haven't tested it on SEG. Same problem, differnt eror message. I havn't found a GOOD (no mod to program source) workaround. >Also, as far as I know, C programs should be compiled using the -oldfortran >option. Huh what? Always use -newfortran or -32ix unless you have code specificly writen for the old meathod of calling "fortran" (other language) procedures. (If you do have such code, I recomend fixing it.) -32ix is a big win in some cases. Ps: for those of you interested, note the info-prime mailing list address below. -- Bob Larson Arpa: Blarson@Ecla.Usc.Edu blarson@skat.usc.edu Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson Prime mailing list: info-prime-request%fns1@ecla.usc.edu oberon!fns1!info-prime-request