What does MAIN_ _MAIN_ __MAIN__ mean?(to invoke clapack) 
Author Message
 What does MAIN_ _MAIN_ __MAIN__ mean?(to invoke clapack)

At http://www.*-*-*.com/ , you will see some code like
the following. Do you know why?

void MAIN_(){}
void MAIN__(){}
void _MAIN_(){}



Wed, 18 Apr 2007 02:24:04 GMT  
 What does MAIN_ _MAIN_ __MAIN__ mean?(to invoke clapack)

Quote:

> 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



Wed, 18 Apr 2007 12:20:56 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ENTRY in main (was re: Jumping from nested subroutine to main directly)

2. if __name__=='__main__': main()

3. python __main__ is similar to java main()

4. Hiding main TK main window

5. ATTACHX problem: task doesn't terminate after termination of main program

6. Best way to get MAIN pgmname (EXEC PGM=?)

7. Deployed app terminates after a MessageBox is displayed before main app shell view is opened

8. What is "IBM-MAIN"

9. Adding things to the Main Palette

10. Main Frames

11. Main Frames

12. IBM-MAIN

 

 
Powered by phpBB® Forum Software