home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21729 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!sasjzs
  3. From: sasjzs@falcon.unx.sas.com (Joseph Slater)
  4. Subject: Re: C problem
  5. Originator: sasjzs@falcon.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <C19Bp9.343@unx.sas.com>
  8. Date: Fri, 22 Jan 1993 13:19:56 GMT
  9. Reply-To: sasjzs@vms.sas.com
  10. References:  <9301201500.AA20662@anon.penet.fi>
  11. Nntp-Posting-Host: falcon.unx.sas.com
  12. Organization: Or lack thereof
  13. Lines: 22
  14.  
  15.  
  16. In article <9301201500.AA20662@anon.penet.fi>, an6034@anon.penet.FI writes:
  17. |>X-Anon-To: INFO-VAX@SRI.COM
  18. |>
  19. |>Hi VAX/VMS experts.
  20. |>
  21. Sorry, all the experts have left.  {:*)
  22.  
  23. |>      void main(void){ /* begin main */
  24. |>%CC-W-INVMAINRETVAL, Return value of main function is not an integer type.
  25. |>              At line number 8 in $DISK:EXAMPLE_1.C;24.
  26. |>
  27. The problem is that you have declared your main routine to be a
  28. void. It needs to be declared as an int or long.
  29. Try:
  30.    int main(void){
  31.  
  32. Joe Slater
  33. sasjzs@vms.sas.com
  34. Mine opinion is just that.
  35. Never argue with a fool. Onlookers will have a hard time
  36. telling who is who.
  37.