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

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

P: n/a
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?AW4DateTimeStatu s@12@XZ) already
defined in atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: class
ATL::COleDateTime & __thiscall ATL::COleDateTime::operator=(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::operator double(void)const "
(??BCOleDateTime@ATL@@QBENXZ) already defined in
atlsd.lib(ATLComTime.obj)

Can someone explain me this ?

Thanks,

Arkam
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"arkam" <ar***@caramail.com> wrote

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.
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.