KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q38820: Error L2025 Name : Symbol Defined More than Once

Article: Q38820
Product(s): See article
Version(s): 5.00 5.10 | 5.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | s_pascal h_fortran h_masm s_quickc s_link s_error | mspl13_c
Last Modified: 7-DEC-1988

The following error is from "Linker Error Messages" in the manual
"CodeView and Utilities", Section C.2, Page 368, and in the "Microsoft
QuickC Compiler Programmer's Guide," Section D.4, Page 373:

L2025       name : symbol defined more than once

            Remove the extra symbol definition from the object file.

Nonfatal errors indicate problems in the executable file. LINK
produces the executable file. Nonfatal error messages have the
following format:

   location : error L2xxx: messagetext

In these messages, location is the input file associated with the
error, or LINK if there is no input file. If the input file is an OBJ
or LIB file and has a module name, the module name is enclosed in
parentheses.

One way this error can be caused is by incorrectly using or omitting a
keyword such as pascal. If the included function prototype has the
keyword and the library routine does not, or vice versa, the linker
reports that the function is defined more than once.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.