BUG: L2025 CObject::Serialize on Large MFC App
PSS ID Number: Q120152
Article last modified on 10-27-1994
PSS database name: UTILITIES

5.50 5.60
MS-DOS

----------------------------------------------------------------------
The information in this article applies to:

 The Microsoft Linker (LINK.EXE), included with
   - Microsoft Visual C++ for Windows, versions 1.0 and 1.5
----------------------------------------------------------------------

SYMPTOMS
========
Large MFC applications built for DEBUG may generate the following error
message:

        C:\msvc\mfc\lib\lafxcwd.lib(afxinl1.cpp) : error L2025 :
        Serialize@CObject@@VECXAEVCArchive@@@Z : symbol defined more than
           once

This problem only occurs when building a standalone MFC application for
DEBUG, and it is believed to be a problem in the library search phase. This
problem does not occur when you build your application to use MFC in a
shared DLL by linking with the file MFC250D.LIB or when building an MFC
application for RELEASE.

RESOLUTION
==========
To work around this problem, extract the file AFXINL1.OBJ from the file
LAFXCWD.LIB and add it to the project. To extract the file use the LIB.EXE
utility with the following command-line arguments:

   LIB LAFXCWD.LIB *AFXINL1.OBJ ;

To add the file (MSVC\MFC\LIB\AFXINL1.OBJ), choose Edit from the Project
menu in the Visual Workbench and from the ListFilesOfType drop-down list
box select the file to add to the project and then choose Add.

STATUS
======
Microsoft has confirmed this to be a bug in the products listed above. We
are researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.

Additional reference words: 5.50 5.60 1.00 1.50 Serialize visualc
buglist5.50 buglist5.60
KBCategory: kbtool kberrmsg kbbuglist
KBSubCategory: LinkIss

=============================================================================
Copyright Microsoft Corporation 1994.