Article ID: 113065
Article Last Modified on 12/1/2003
DUMPBIN <library name> /symbolsshows multiple copies of the function exist in the library. The DUMPBIN utility is in the \MSVCNT\BIN directory.
/* FILE A.C
Compile options needed: /c
*/
#include <stdio.h>
void amain(void)
{
printf("a");
}
/* FILE B.C
Compile options needed: /c
*/
#include <stdio.h>
void bmain(void)
{
printf("b");
}
/* Lib commands needed: */
/* Create the libraries TEST.LIB and TESTB.LIB */
lib /out:test.lib a.obj
lib /out:testb.lib b.obj
/* Add the contents of TESTB.LIB (B.OBJ) to TEST.LIB: */
lib test.lib testb.lib
/* List the current contents of TEST.LIB; */
/* it will show one copy of A.OBJ and one copy of B.OBJ. */
lib test.lib /list
/* Add the contents of TESTB.LIB (B.OBJ) to TEST.LIB again. */
/* This step generates the above warning. */
lib test.lib testb.lib
/* List the current contents of TEST.LIB; */
/* it will show two copies of B.OBJ in the library. */
lib test.lib /list
Keywords: kbprb KB113065