home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21777 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  3.1 KB

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!att!ucbvax!AC.GRIN.EDU!MCMAHON
  2. From: MCMAHON@AC.GRIN.EDU ("McMahon,Brian D")
  3. Newsgroups: comp.os.vms
  4. Subject: Re: C problem
  5. Message-ID: <9301222143.AA04490@ucbvax.Berkeley.EDU>
  6. Date: 21 Jan 93 21:55:48 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 60
  11.  
  12. > Hi VAX/VMS experts.
  13.  
  14. Hello, an6034.
  15.  
  16. > When I try to compile this program in a VAX/VMS (5.4-2) environment I get a
  17. > warning message.  I have looked up the error message but it doesn't mean a
  18. > thing to me.
  19.  
  20. Oh really?  If you looked it up in the "Guide to VAX C," you found this:
  21.  
  22. INVMAINRETVAL, Return value of main function is not an integer type.
  23.  
  24.   Warning:  You have declared a main function with a return type that is
  25.   not an integer type.
  26.  
  27.   User Action:  Check for an omitted semicolon at the end of any
  28.   declaration immediately preceding the declaration of the main function
  29.   [this is not the problem -- bdm], or change the return value
  30.   specification to one of the integer types.
  31.  
  32. Now, if you had also taken the added step of looking up "integer data
  33. types" in the index of that very same manual, you would have found a table
  34. of integer data types, and noticed that data type void was not among them.
  35.  
  36. > So am I missing a compiler switch that will make it all ok??
  37.  
  38. Yeah, you could CC/NOWARN to suppress the warning message.  You could also
  39. ignore it, because WARNING messages are _not_ ERROR messages.  Your program
  40. will compile, link, and run fine exactly as it is.  (Did you try it?)  You
  41. could also fix your main function declaration to conform to VAX C by losing
  42. the void crapola.  You're not really worried about a return value, so why
  43. bother?  Change your declaration to main() and all will be fine.  Please
  44. keep in mind that VAX C is *NOT* ANSI C, nor does it claim to be.
  45.  
  46. And now, we bring you to the centerpiece of the day's entertainment.  For
  47. those of you with delicate constitutions, I've placed the answer ahead of
  48. the flame, so you can stop reading now.  Now, where did I put my napalm?
  49.  
  50. > To find out more about the anon service, send mail to help@anon.penet.fi.
  51. > Due to the double-blind system, any replies to this message will be anonymized,
  52. > and an anonymous id will be allocated automatically. You have been warned.
  53.  
  54. This anon service is one of the worst ideas I have seen in a long, long
  55. time.  I mean, not that SMTP mail is particularly secure or anything like
  56. that, but this any-drooling-moron-can-post-anonymously shit is the pits. 
  57. This is the clearest indication yet that the time has come to give up and
  58. go dig out that DECUServe form that I never got around to sending in.  The
  59. relative frequency of yahoos on the net is just getting too high, with a
  60. corresponding degradation of the signal/noise ratio.
  61.  
  62. I will not respond to any further anon postings.  I urge others to do
  63. likewise.  If someone is unwilling to so much as tell us his NAME, why
  64. should we bother to provide free advice?
  65.  
  66. O tempora, o mores!
  67.  
  68. Brian McMahon (BDM13)    <MCMAHON@GRIN1.BITNET>    <MCMAHON@AC.GRIN.EDU>
  69. Postmaster / Acad. Software Support   Grinnell College Computer Services
  70. Grinnell, Iowa 50112 USA   Voice: +1 515 269 4901   Fax: +1 515 269 4936
  71.  
  72.