Primos portability report
Richard Harter
g-rh at cca.CCA.COM
Wed Feb 17 15:33:59 AEST 1988
Here is a gotcha for C programs which will be ported to PRIMOS.
#include <stdio.h>
...
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 <stdio.h>
....
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.
More information about the Comp.lang.c
mailing list