L2025 Error: "Symbol Defined More than Once"

ID: Q33998

4.00 4.01 4.10 5.00 5.10 | 4.10 5.00 5.10

MS-DOS                   | OS/2
kbprg

The information in this article applies to:

When a FORTRAN program generates the link error L2025: "symbol defined more than once" occurring on the symbol _main, it usually means that more than one of the object modules being linked appeared to the linker as a main program.

Make sure all the subprograms in all object modules, other than the main, have the FUNCTION or SUBROUTINE statement.

Additional reference words: kbinf 4.10 5.00 5.10 KBCategory: kbprg KBSubCategory: FORTLngIss

Last Reviewed: April 30, 1998