By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,237 Members | 1,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,237 IT Pros & Developers. It's quick & easy.

linker errors: LNK2005

P: n/a
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!
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.