Link problem : LNK2005 Symbol already defined in the SAME library !

A

arkam

Hi,

Here are my link errors :

atlsd.lib(ATLComTime.obj) : error LNK2005: "public: __thiscall
ATL::COleDateTime::COleDateTime(struct tagVARIANT const &)"
(??0COleDateTime@ATL@@QAE@ABUtagVARIANT@@@Z) already defined in
atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: void __thiscall
ATL::COleDateTime::SetStatus(enum ATL::COleDateTime::DateTimeStatus)"
(?SetStatus@COleDateTime@ATL@@QAEXW4DateTimeStatus@12@@Z) already
defined in atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: enum
ATL::COleDateTime::DateTimeStatus __thiscall
ATL::COleDateTime::GetStatus(void)const "
(?GetStatus@COleDateTime@ATL@@QBE?AW4DateTimeStatus@12@XZ) already
defined in atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: class
ATL::COleDateTime & __thiscall ATL::COleDateTime::blush:perator=(struct
tagVARIANT const &)" (??4COleDateTime@ATL@@QAEAAV01@ABUtagVARIANT@@@Z)
already defined in atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: __thiscall
ATL::COleDateTime::blush:perator double(void)const "
(??BCOleDateTime@ATL@@QBENXZ) already defined in
atlsd.lib(ATLComTime.obj)

Can someone explain me this ?

Thanks,

Arkam
 
M

Martin

Could you try to change the name? See what happens. May-be there is
something strange happening because the linker does not look at all
characters in the name, and the compiler does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top