Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!tank!uxc!uxc.cso.uiuc.edu!m.cs.uiuc.edu!s.cs.uiuc.edu!walquist From: walquist@s.cs.uiuc.edu Newsgroups: comp.lang.c Subject: sysV 2.0 vs 3.1 compatibility? Message-ID: <207600011@s.cs.uiuc.edu> Date: 1 Dec 88 20:26:00 GMT Lines: 37 Nf-ID: #N:s.cs.uiuc.edu:207600011:000:1212 Nf-From: s.cs.uiuc.edu!walquist Dec 1 14:26:00 1988 I am having trouble with a program (namely, CAL) that I'm attempting to compile on Unix sysV version 3.1 software. It works when compiled on version 2.0.4, but a call to fopen() in a 3.1 executable causes the program to die (or be killed; the error message simply reads "Killed"). Background: the compiler used is "dmdcc", a compiler for software developed for the AT&T 5620 (the blit). The same DMD Application Development Uilities exist on each machine (2.0 and 3.1). When I compile this program with dmdcc and run it (using an existing file "temp"), it exits with "Killed." and no other output. #include main() { FILE *fp; int c; fp = fopen("temp","r"); while ((c=getc(fp)) != EOF) putc(stdout); fclose(fp); } When I compile the same program with cc (replacing with ), everything is fine. Also: these errors come up for 3.1 compiles, but not 2.0.4 compiles: /usr/DMD/include/jerqproc.h: 103: extra tokens (ignored) after directive /usr/DMD/include/mpx.h: 135: extra tokens (ignored) after directive /usr/DMD/include/font.h: 43: extra tokens (ignored) after directive What is a token? a directive? -Christopher