system 5 vrs. bsd4.3 question

David M Koon dxk at beta.lanl.gov
Thu Jul 20 02:25:58 AEST 1989


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 <stdio.h>
#include <string.h>
#include <time.h>
#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 at lanl.gov



More information about the Comp.unix.wizards mailing list