Re: What does MAIN_ _MAIN_ __MAIN__ mean?(to invoke clapack)
From: Robert Corbett (robert.corbett_at_sun.com)
Date: 10/30/04
- Next message: Richard E Maine: "Re: GNU Fortran 95: Opinions?"
- Previous message: beliavsky_at_aol.com: "Re: GNU Fortran 95: Opinions?"
- In reply to: Peng Yu: "What does MAIN_ _MAIN_ __MAIN__ mean?(to invoke clapack)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Oct 2004 21:20:56 -0700
Peng Yu <pengyu.ut@gmail.com> wrote in message news:<ng25o096tmh0r68rgs63sasru3oko52ei8@4ax.com>...
> At http://www.netlib.org/clapack/faq.html, you will see some code like
> the following. Do you know why?
>
> void MAIN_(){}
> void MAIN__(){}
> void _MAIN_(){}
The AT&T UNIX f77 compiler and libraries required the first of
those names to be defined if a program containing object files
created by f77 was linked with a C main routine. I assume the
other two names were tossed in because of linking requirements
of derivative FORTRAN 77 implementations.
Sincerely,
Bob Corbett
- Next message: Richard E Maine: "Re: GNU Fortran 95: Opinions?"
- Previous message: beliavsky_at_aol.com: "Re: GNU Fortran 95: Opinions?"
- In reply to: Peng Yu: "What does MAIN_ _MAIN_ __MAIN__ mean?(to invoke clapack)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]