Q62058: Multiple Duplicate Definition L2025 with Graphics Stub Files
Article: Q62058
Product(s): See article
Version(s): 7.00 | 7.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | SR# S900329-130 | mspl13_basic
Last Modified: 22-MAY-1990
Linking a Microsoft BASIC Professional Development System (PDS)
version 7.00 program with the NOGRAPH.OBJ stub file and any of the
other graphics stub files (NOEGA.OBJ, NOOGA.OBJ, NOVGA.OBJ, or
NOHERC.OBJ) produces multiple "L2025 symbol defined more than once"
error messages. This is because the NOGRAPH object module is a
superset of the other NOxxx.OBJ graphics files. If you use NOGRAPH,
you remove all graphics support and should not use any of the other
NOxxxx.OBJ graphics stub files. The individual NOxxx.OBJ graphics stub
files contain a subset of the stub routines in the NOGRAPH.OBJ stub
file. When you try to link them both, you are trying to include the
same routines twice, and therefore, the linker generates L2025,
telling you that the same stub routine is being linked in twice.
NOGRAPH.OBJ should be used by itself. If you want to stub out all
graphics support, link with NOGRAPH.OBJ and no other stub file.
However, if you want VGA support but not EGA, HERC, or OGA, link your
program with NOEGA, NOHERC, and NOOGA, but not with NOVGA and NOGRAPH.
This information applies to Microsoft BASIC PDS 7.00 for MS-DOS and MS
OS/2.
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.