Solutions with the following error: NAFXCW.LIB (AFXMem.obj): Error LNK2005: "Void * __cdecl operator new (unsigned int)" (? 2 @ YAPAXI @ z) already defined in libcmt.lib (new.obj) Nafxcw.lib (AFXMEM.OBJ): Error LNK2005: "VOID __CDECL Operator Delete (void *)" (?? 3 @ Yaxpax @ z) already defined in libcmt.lib (delete.obj) Release / demo.exe: Fatal Error LNK1169: One or more Multiply Defined Symbols Found Solution
There are two ways to solve this problem: the first solution involves the forced linker link library in the correct order. The second solution is to let you find modules that cause problems and correct it.
Solution 1: Forced Links Link Library in the Clear Sequence
1. On the Generate menu, click Settings.
2. In the Project Settings dialog box, click the items view of the item, click to select a project configuration that appears link errors.
3. On the Links tab, click "INPUT" in the Category combo box.
4. In "To ignore the library", insert the library name (for example, Nafxcwd.lib; libcmtd.lib).
Note: The equivalent linker command line is: / NodLibrary Name>.
5. In the Object / Library Module box, insert the library name. Must ensure that these libraries are listed in order and are listed as the first two libraries in the command line (for example, NAFXCWD.LIB and LIBCMTD.LIB).