G
Guest
Hi,
I have a C++ application that calls a function in another static library
which accepts a std::string parameter. However, my VS 2005 compiler shows
the following error:
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class
std::allocator<char> > &)"
(??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z) already defined in log4cppLIB.lib(Category.obj)
Any idea how I can resolve this problem?
Regards
cleohm
I have a C++ application that calls a function in another static library
which accepts a std::string parameter. However, my VS 2005 compiler shows
the following error:
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class
std::basic_string<char,struct std::char_traits<char>,classstd::basic_istream said:(class std::basic_istream<char,struct std::char_traits<char> > &,class
std::allocator<char> > &)"
(??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z) already defined in log4cppLIB.lib(Category.obj)
Any idea how I can resolve this problem?
Regards
cleohm