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

msvcprt.lib (msvcp60.dll) LNK2005 error

P: n/a
I have this link error:

msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char::basic_string<char,struct
std::char_traits<char>,class std::allocator<char(class
std::basic_string<cha
r,struct std::char_traits<char>,class std::allocator<char const &)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$alloc ator@D@2@@std@@QAE@ABV01@@
Z) already defined in libcpd.lib(ios.obj)

Not sure how to resolve?

Angus
Dec 27 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Angus" <no****@gmail.comwrote in message
news:em*******************@news.demon.co.uk...
>I have this link error:

msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char::basic_string<char,struct
std::char_traits<char>,class std::allocator<char(class
std::basic_string<cha
r,struct std::char_traits<char>,class std::allocator<char const &)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$alloc ator@D@2@@std@@QAE@ABV01@@
Z) already defined in libcpd.lib(ios.obj)

Not sure how to resolve?
Fix the bug on line 42.

-Mike
Dec 27 '06 #2

P: n/a
"Angus" <no****@gmail.comwrote in message
news:em*******************@news.demon.co.uk...
>I have this link error:

msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char::basic_string<char,struct
std::char_traits<char>,class std::allocator<char(class
std::basic_string<cha
r,struct std::char_traits<char>,class std::allocator<char const &)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$alloc ator@D@2@@std@@QAE@ABV01@@
Z) already defined in libcpd.lib(ios.obj)

Not sure how to resolve?

Angus
This is a link error, basically saying that you are trying to link the same
function twice. When I get these errors I generally google for the library
and function name and I find something saying, if you get this error, remove
from the link xxxxx.lib.

Now, looking at your particular error, it says that there is some function
in msvcprt.lib that is also in libcpd.lib. Google to find out how to fix
the conflict (most likely you don't want to include one of those libraries).

This is OT because it is a link problem, you should ask in a microsoft
newsgroup such as:
microsoft.public.vc.language or
comp.os.ms-windows.programmer.win32
Dec 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.