Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!ctrsol!lll-winken!arisia!sgi!shinobu!odin!krypton!gavin From: gavin@krypton.sgi.com (Gavin A. Bell) Newsgroups: comp.unix.wizards Subject: Re: system 5 vrs. bsd4.3 question Message-ID: <454@odin.SGI.COM> Date: 5 Sep 89 17:07:14 GMT References: <28398@beta.lanl.gov> Lines: 24 dxk@beta.lanl.gov (David M Koon) writes: >I am trying to port the following code from a Sun( it also works >on a PC with turbo C) to a Silicon Graphics(system V). >#include "cffs.h" > >main(argc,argv) There was a question exactly like this a couple of months ago. Look for a missing semicolon at the end of cffs.h A missing semicolon probably make the code look like: struct foo {...} main(argc,argv) { ... } ... that is, main is a 'struct foo'. Most compilers don't care, but the Mips compiler used on SGI machines seems to get quite confused. This probably isn't unreasonable, since main() should always be declared either void or int. This has nothing to do with SYSV versus BSD. --gavin