home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3124 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!caen!destroyer!news.iastate.edu!musik
  3. From: musik@iastate.edu ()
  4. Subject: Some errors using cc under 386bsd r0.1
  5. Message-ID: <1992Jul29.180105.2440@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames, IA
  8. Date: Wed, 29 Jul 1992 18:01:05 GMT
  9. Lines: 21
  10.  
  11. Strange little error coming up when trying to compile
  12. with cc.  I've just been writing some silly little
  13. utilities, some of which require command line args.
  14. I've compiled the sources (which are very short, very
  15. basic, very simple) on other machines, i.e. HP/UX, Ultrix,
  16. IBM PC clone, etc. and they work.  However, when I try
  17. to compile anything that uses argc and argv in cc on 386bsd,
  18. somehow, even though I declare it as an int, argc is
  19. being made into (I think) an unsigned long.  Anyway...
  20. It comes back with numbers in the billions instead of
  21. the expected 2 or 3 command line args count.  :)
  22.  
  23. Any ideas?
  24. Should I just ditch cc and go with gcc?
  25. Or is the error somewhere else?
  26.  
  27. Thanks a mil...
  28.  
  29. DG
  30. musik@iastate.edu
  31.  
  32.