This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++-2.95.2 on HP-UX 11.00: return value of main()
- To: Alexandre Oliva <aoliva at cygnus dot com>, bug-gcc at gnu dot org
- Subject: Re: g++-2.95.2 on HP-UX 11.00: return value of main()
- From: "Ulrich Windl" <Ulrich dot Windl at rz dot uni-regensburg dot de>
- Date: Fri, 14 Apr 2000 14:31:29 +0200
- CC: bug-gcc at gnu dot org
- Organization: Universitaet Regensburg, Klinikum
- References: "Ulrich Windl"'s message of "Fri, 14 Apr 2000 11:11:50 +0200"
On 14 Apr 00, at 6:56, Alexandre Oliva wrote:
> On Apr 14, 2000, "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> wrote:
>
> > it seems my program no longer uses the return value of main as exit
> > code. I "return(1)" in main(), but the exit code is 0.
>
> That's possible. GCC 2.95.2 doesn't support HP-UX 11.00. There are
> some pre-compiled binaries that claim to work, but apparently they
> don't. You may want to try development snapshots; they're supposed to
> support HP-UX 11.00 (but you may find other problems, as expected from
> any development snapshot :-)
>
> > Is it a known bug?
>
> I had never heard of this one.
So we can say the ANSI standard says it (returning exitcodes from
main()) should work? Or is it undefined?
Regards,
Ulrich