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