CompuServe Messages

#Linking Error

    11-Jul-94 18:53:08
Sb: #Linking Error
Fm: Robert King 72133,2274
To: All
All, I am having a bazaar linking problem with VC++. The project uses the CVBControl and CDatabase classes in the MFC. If a static collection class object (CStringArray, CObList etc.) is declared as follows: { CStringArray m_strarray; or CObList m_list; } I get the following link error: c:\msvc\mfc\lib\lafxcwd.lib(afxinl1.cpp) : error L2025: Serialize@CObject@@VECXAEVCArchive@@@Z : symbol defined more than once This problem started with the first use of AfxRegisterVBEvent() and the first declaration of a static collection class object. If the object is created using "new CStringArray()" there are no linking errors or any runtime problems. If anyone has any ideas please let me know. Robert