Microsoft KB Archive/43203

From BetaArchive Wiki

“L2025 Symbol Defined More Than Once” Linking QC2 with COBOL

PSS ID Number: Q43203 Article last modified on 04-20-1993

3.00 3.00a MS-DOS

The information in this article applies to:
- Microsoft COBOL for MS-DOS, versions 3.0 and 3.0a - Microsoft QuickC for MS-DOS, version 2.0

Summary: When linking a QuickC Version 2.0 object file with a COBOL object file, the linker error “L2025 symbol defined more than once” occurs. This occurs when COBOL is the main program and calls C. The linker error occurs because QuickC 2.0 libraries contain names that conflict with the MINITC.OBJ file that must be linked with COBOL and C when COBOL is the main program. To work around these errors, do one of the following: 1. Make C the main program and call COBOL from C. When C is the main program, the MINITC.OBJ file is not required. 2. Use C Version 5.0 or 5.1 to compile C routines. The MINITC.OBJ file was created to be used with C 5.0 and C 5.1.

Additional reference words: 3.00 3.00a Copyright Microsoft Corporation 1993.