Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.26 KB

linker-tools-warning-lnk4006.md

File metadata and controls

27 lines (18 loc) · 1.26 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Linker Tools Warning LNK4006
Linker Tools Warning LNK4006
11/04/2016
LNK4006
LNK4006
3a637d17-1676-4ea6-bd8b-290137d28d3b

Linker Tools Warning LNK4006

symbol already defined in object; second definition ignored

The given symbol, displayed in its decorated form, was multiply defined. When this warning is encountered, symbol will be added twice, but only its first form will be used.

You can get this warning if you try to merge two import libs into one.

If you are rebuilding the C run-time library, you can ignore this message.

To fix by using the following possible solutions

  1. The given symbol may be a packaged function, created by compiling with /Gy. This symbol was included in more than one file but was changed between compilations. Recompile all files that include the symbol.

  2. The given symbol may have been defined differently in two member objects in different libraries.

  3. An absolute may have been defined twice, with a different value in each definition.

  4. If the error message is received when combining libraries, symbol already exists in the library being added to.