On Wed, 14 Jan 2004 21:54:31 -0800, dullboy wrote:
I have a non-MFC project which generated some linker errors
"uuid.lib(ieguids.obj) : error LNK2005: _IID_Ixxx already defined in
xxx.obj.
_IID_Ixxx is an user-defined ID and xxx.obj is a user obj. I tried to
add uuid.lib in setting/link/input/ignored libraries, but it didn't
work. Any suggestion would be appreciated!
Most of the time, this means you defined something in a header that should
go into one translation unit only (one source file). For instance:
---- someheader.h
void f()
{
}
This defines f in every source file that includes the header. Either make
it inline, or move it to a source file and replace the above with a
function declaration (``void f();'').
However, uuid.lib, iirc, has something to do with COM, so you'ld probably
best ask in a Windows/MFC/COM/.net oriented group.
HTH,
M4