*BSD News Article 2751


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!mips!mips!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!news.iastate.edu!musik
From: musik@iastate.edu ()
Subject: Some errors using cc under 386bsd r0.1
Message-ID: <1992Jul29.180105.2440@news.iastate.edu>
Sender: news@news.iastate.edu (USENET News System)
Organization: Iowa State University, Ames, IA
Date: Wed, 29 Jul 1992 18:01:05 GMT
Lines: 21

Strange little error coming up when trying to compile
with cc.  I've just been writing some silly little
utilities, some of which require command line args.
I've compiled the sources (which are very short, very
basic, very simple) on other machines, i.e. HP/UX, Ultrix,
IBM PC clone, etc. and they work.  However, when I try
to compile anything that uses argc and argv in cc on 386bsd,
somehow, even though I declare it as an int, argc is
being made into (I think) an unsigned long.  Anyway...
It comes back with numbers in the billions instead of
the expected 2 or 3 command line args count.  :)

Any ideas?
Should I just ditch cc and go with gcc?
Or is the error somewhere else?

Thanks a mil...

DG
musik@iastate.edu