Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cca!g-rh From: g-rh@cca.CCA.COM (Richard Harter) Newsgroups: comp.lang.c Subject: Primos portability report Message-ID: <24599@cca.CCA.COM> Date: 17 Feb 88 05:33:59 GMT Reply-To: g-rh@CCA.CCA.COM.UUCP (Richard Harter) Organization: Computer Corp. of America, Cambridge, MA Lines: 28 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." The cure is to initialize FILE pointers with assignment statements, e.g. #include .... FILE *ifptr; main(...) { ifptr = stdin;....} I haven't tested it on SEG. Also, as far as I know, C programs should be compiled using the -oldfortran option. -- In the fields of Hell where the grass grows high Are the graves of dreams allowed to die. Richard Harter, SMDS Inc.