Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!peregrine!ccicpg!cci632!rit!tropix!ur-valhalla!uhura.cc.rochester.edu!rochester!rutgers!apple!sun-barr!ames!hc!lanl!beta!dxk From: dxk@beta.lanl.gov (David M Koon) Newsgroups: comp.unix.wizards Subject: system 5 vrs. bsd4.3 question Summary: system 5 vrs. bsd4.3 question Message-ID: <28398@beta.lanl.gov> Date: 15 Aug 89 16:25:58 GMT Organization: Los Alamos National Laboratory Lines: 23 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 #include #include #include "cffs.h" main(argc,argv) int argc; char *argv[]; { .... However, on the SGI machine argc is undefined and argv seems to contain the environmental variables. Does anyone have any ideas as to what is causing this and how I can fix it? I am compiling in the Sun with cc fn.c -o fn and on SGI with cc fn.c -o fn. Thanks, Dave Koon Los Alamos National Laboratory dxk@lanl.gov