Click to See Complete Forum and Search --> : nafxcwd.lib errors


bluesource
July 12th, 2002, 12:11 PM
Has anyone seen these errors before? If so what do they mean?

Linking...
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual __thiscall CObject::~CObject(void)" (??1CObject@@UAE@XZ) already defined in ZipArchive.lib(ZipCentralDir.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@UAEXAAVCArchive@@@Z) already defined in ZipArchive.lib(ZipFile.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual __thiscall CException::~CException(void)" (??1CException@@UAE@XZ) already defined in ZipArchive.lib(ZipFile.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual __thiscall CFileException::~CFileException(void)" (??1CFileException@@UAE@XZ) already defined in ZipArchive.lib(ZipFile.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual void __thiscall CFile::SetFilePath(char const *)" (?SetFilePath@CFile@@UAEXPBD@Z) already defined in ZipArchive.lib(ZipFile.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: int __thiscall CString::Compare(char const *)const " (?Compare@CString@@QBEHPBD@Z) already defined in ZipArchive.lib(ZipString.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: int __thiscall CString::CompareNoCase(char const *)const " (?CompareNoCase@CString@@QBEHPBD@Z) already defined in ZipArchive.lib(ZipString.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: int __thiscall CString::Collate(char const *)const " (?Collate@CString@@QBEHPBD@Z) already defined in ZipArchive.lib(ZipString.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: int __thiscall CString::CollateNoCase(char const *)const " (?CollateNoCase@CString@@QBEHPBD@Z) already defined in ZipArchive.lib(ZipString.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: class CString __thiscall CStringArray::GetAt(int)const " (?GetAt@CStringArray@@QBE?AVCString@@H@Z) already defined in ZipArchive.lib(ZipArchive.obj)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: class CString __thiscall CStringArray::operator[](int)const " (??ACStringArray@@QBE?AVCString@@H@Z) already defined in ZipArchive.lib(ZipArchive.obj)
nafxcwd.lib(afxmem.obj) : error LNK2005: "public: static void __stdcall CObject::operator delete(void *)" (??3CObject@@SGXPAX@Z) already defined in ZipArchive.lib(ZipFile.obj)
LINK : warning LNK4098: defaultlib "nafxcw.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "libcmt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Im.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

kandukondein
July 12th, 2002, 12:15 PM
Once i came across such types of weird errors when i checked in Ignore all default Libraries option in the Projects->Settings.

bluesource
July 12th, 2002, 12:17 PM
Yes, this is already unchecked, I checked it to see what would happen and I got 3,415 errors! wow, that must be a new record :)

bluesource
July 12th, 2002, 12:19 PM
Hmm, no need to worry, I hit "Reset" and it reset the configuration, I then just re-added my lib files and now everything works again!

Thanks