I keep getting this when compiling two of my static libs.
d3d9.lib(d3d9.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in d3dx9.lib(d3dx9_35.dll); second definition ignored
d3d9.lib(d3d9.dll) : warning LNK4221: no public symbols found; archive member will be inaccessible
I cannot for the life of me figure out how to rid myself of this warning or if it is a red flag that could indicate future problems with my libs.Visual C++ Concepts: Building a C/C++ Program
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
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.
The given symbol may have been defined differently in two member objects in different libraries.
An absolute may have been defined twice, with a different value in each definition.
If the error message is received when combining libraries, symbol already exists in the library being added to.