home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!sasjzs
- From: sasjzs@falcon.unx.sas.com (Joseph Slater)
- Subject: Re: C problem
- Originator: sasjzs@falcon.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <C19Bp9.343@unx.sas.com>
- Date: Fri, 22 Jan 1993 13:19:56 GMT
- Reply-To: sasjzs@vms.sas.com
- References: <9301201500.AA20662@anon.penet.fi>
- Nntp-Posting-Host: falcon.unx.sas.com
- Organization: Or lack thereof
- Lines: 22
-
-
- In article <9301201500.AA20662@anon.penet.fi>, an6034@anon.penet.FI writes:
- |>X-Anon-To: INFO-VAX@SRI.COM
- |>
- |>Hi VAX/VMS experts.
- |>
- Sorry, all the experts have left. {:*)
-
- |> void main(void){ /* begin main */
- |>%CC-W-INVMAINRETVAL, Return value of main function is not an integer type.
- |> At line number 8 in $DISK:EXAMPLE_1.C;24.
- |>
- The problem is that you have declared your main routine to be a
- void. It needs to be declared as an int or long.
- Try:
- int main(void){
-
- Joe Slater
- sasjzs@vms.sas.com
- Mine opinion is just that.
- Never argue with a fool. Onlookers will have a hard time
- telling who is who.
-