Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;q148652" rel="nofollow noreferrer">http://support.microsoft.com/default.aspx?scid=kb;en-us;q148652</a></p> <blockquote> <p>A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++</p> </blockquote> <p>Because</p> <blockquote> <p>The CRT libraries use weak external linkage for the new, delete, and DllMain functions. The MFC libraries also contain new, delete, and DllMain functions. These functions require the MFC libraries to be linked before the CRT library is linked.</p> </blockquote> <p>So</p> <blockquote> <p>There are two ways to resolve this problem. The first solution involves forcing the linker to link the libraries in the correct order. The second solution allows you to find the module that is causing the problem and to correct it.</p> </blockquote> <p>Either</p> <blockquote> <p>Force Linker to Link Libraries in Correct Order</p> <ol> <li>On the Project menu, click Settings.</li> <li>In the Settings For view of the Project Settings dialog box, click to select the project configuration that is getting the link errors.</li> <li>On the Link tab, click to select Input in the Category combo box.</li> <li><p>In the Ignore libraries box, insert the library names (for example, Nafxcwd.lib;Libcmtd.lib).</p> <p>Note The linker command-line equivalent in /NOD:.</p></li> <li>In the Object/library modules box, insert the library names. You must make sure that these are listed in order and as the first two libraries in the line (for example, Nafxcwd.lib Libcmtd.lib).</li> </ol> <p>To set this option in Visual C++ .NET, read the "Setting Visual C++ Project Properties" online help topic.</p> </blockquote> <p>Or</p> <blockquote> <p>Locate and Correct the Problem Module To view the current library link order, follow these steps:</p> <ol> <li>On the Project menu, click Settings.</li> <li>In the Settings For view of the Project Settings dialog box, click to select the project configuration that is getting the link errors.</li> <li>On the Link tab, type /verbose:lib in the Project Options box.</li> <li>Rebuild your project. The libraries will be listed in the output window during the linking process.</li> </ol> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload