iam able to compile the MSVC++.NET Dll (Class Library)
But while linking it gives error
--------------------------
----------
----------
----------
----------
--
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall std::locale::facet::_Incre
f(void)" (?_Incref@facet@locale@std
@@QAEXXZ) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> >::~basic_string<char,stru
ct std::char_traits<char>,cla
ss std::allocator<char> >(void)" (??1?$basic_string@DU?$cha
r_traits@D
@std@@V?$a
llocator@D
@2@@std@@Q
AE@XZ) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> >::basic_string<char,struc
t std::char_traits<char>,cla
ss std::allocator<char> >(class std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> > const &)" (??0?$basic_string@DU?$cha
r_traits@D
@std@@V?$a
llocator@D
@2@@std@@Q
AE@ABV01@@
Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> >::basic_string<char,struc
t std::char_traits<char>,cla
ss std::allocator<char> >(char const *)" (??0?$basic_string@DU?$cha
r_traits@D
@std@@V?$a
llocator@D
@2@@std@@Q
AE@PBD@Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::basic_ostream<char,st
ruct std::char_traits<char> > & __thiscall std::basic_ostream<char,st
ruct std::char_traits<char> >::flush(void)" (?flush@?$basic_ostream@DU
?$char_tra
its@D@std@
@@std@@QAE
AAV12@XZ) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall std::basic_ostream<char,st
ruct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU
?$char_tra
its@D@std@
@@std@@QAE
XXZ) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> > & __thiscall std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> >::append(unsigned int,char)" (?append@?$basic_string@DU
?$char_tra
its@D@std@
@V?$alloca
tor@D@2@@s
td@@QAEAAV
12@ID@Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: unsigned int __thiscall std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> >::max_size(void)const " (?max_size@?$basic_string@
DU?$char_t
raits@D@st
d@@V?$allo
cator@D@2@
@std@@QBEI
XZ) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> > & __thiscall std::basic_string<char,str
uct std::char_traits<char>,cla
ss std::allocator<char> >::erase(unsigned int,unsigned int)" (?erase@?$basic_string@DU?
$char_trai
ts@D@std@@
V?$allocat
or@D@2@@st
d@@QAEAAV1
2@II@Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall std::locale::~locale(void)
" (??1locale@std@@QAE@XZ) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::locale __thiscall std::ios_base::getloc(void
)const " (?getloc@ios_base@std@@QBE
?AVlocale@
2@XZ) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<char,
struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@
DU?$char_t
raits@D@st
d@@@std@@Q
AEHD@Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::basic_ostream<char,st
ruct std::char_traits<char> > & __thiscall std::basic_ostream<char,st
ruct std::char_traits<char> >::operator<<(class std::basic_ostream<char,st
ruct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,st
ruct std::char_traits<char> > &))" (??6?$basic_ostream@DU?$ch
ar_traits@
D@std@@@st
d@@QAEAAV0
1@P6AAAV01
@AAV01@@Z@
Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "class std::basic_ostream<char,st
ruct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,st
ruct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std
@@@std@@YA
AAV?$basic
_ostream@D
U?$char_tr
aits@D@std
@@@0@AAV10
@PBD@Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::basic_ostream<char,st
ruct std::char_traits<char> > & __thiscall std::basic_ostream<char,st
ruct std::char_traits<char> >::operator<<(long)" (??6?$basic_ostream@DU?$ch
ar_traits@
D@std@@@st
d@@QAEAAV0
1@J@Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "class std::basic_ostream<char,st
ruct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,st
ruct std::char_traits<char> > &)" (?endl@std@@YAAAV?$basic_o
stream@DU?
$char_trai
ts@D@std@@
@1@AAV21@@
Z) already defined in IlogDemo2.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::basic_ostream<char,st
ruct std::char_traits<char> > & __thiscall std::basic_ostream<char,st
ruct std::char_traits<char> >::operator<<(double)" (??6?$basic_ostream@DU?$ch
ar_traits@
D@std@@@st
d@@QAEAAV0
1@N@Z) already defined in IlogDemo2.obj
LINK : error LNK2020: unresolved token (0A00008D) ?_Id_cnt@id@locale@std@@0H
A
LINK : error LNK2020: unresolved token (0A000092) cout
LINK : error LNK2020: unresolved token (0A000093) _DebugHeapTag
LINK : fatal error LNK1120: 3 unresolved externals
--------------------------
----------
----------
----------
----------
--
error LNK2005:already defined etc... I have tried all the possibilites in project properties...
Following are the Project Peroperites Set..
Linking Section
Ignore Import Library :- Yes
Input :- All DLL required for the appn..
Ignore All Default Libraries :- No
Ignore Specific Library :- LIBCMTD.lib;libcpmtd.lib
Start Free Trial