前进的道路不是一帆风顺的,要随时迎接挑战,敢于战胜困难!

坚持一下,找人聊聊天,释放一些压力!

 

关于: error LNK2005: __c_exit already defined in libcmt.lib(crt0dat.obj)

VC6.0关于错误:error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)

错误描述:--------------------Configuration: FileReveiverV2 - Win32 Release--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
bitmap.cpp
DlgClientParam.cpp
DlgSpaceList.cpp
FileReveiverV2.cpp
FileReveiverV2Doc.cpp
FileReveiverV2View.cpp
FolderDlg.cpp
FViewRecv.cpp
FViewTabCount.cpp
LViewRecv.cpp
MainFrm.cpp
TabSheet.cpp
TViewRecv.cpp
UTil.cpp
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(125) : warning C4786: '?$reverse_bidirectional_iterator@Viterator@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$
allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@AAV43@PAV43@H' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(128) : warning C4786: '?$reverse_bidirectional_iterator@Vconst_iterator@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@st
d@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@ABV43@PBV43@H' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(137) : warning C4786: '??0?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@IABV?$b
asic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(145) : warning C4786: '??0?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@PBV?$ba
sic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(154) : warning C4786: '??0?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@Vconst_
iterator@01@0ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(176) : warning C4786: '?rbegin@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE?AV
?$reverse_bidirectional_iterator@Viterator@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D
@2@@3@AAV43@PAV43@H@2@XZ' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(178) : warning C4786: '?rbegin@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QBE?AV
?$reverse_bidirectional_iterator@Vconst_iterator@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$alloc
ator@D@2@@3@ABV43@PBV43@H@2@XZ' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(180) : warning C4786: '?rend@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE?AV?$
reverse_bidirectional_iterator@Viterator@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2
@@3@AAV43@PAV43@H@2@XZ' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(181) : warning C4786: '?rend@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QBE?AV?$
reverse_bidirectional_iterator@Vconst_iterator@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocat
or@D@2@@3@ABV43@PBV43@H@2@XZ' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
C:"Program Files"Microsoft Visual Studio"VC98"INCLUDE"list(300) : warning C4786: '?remove_if@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE
XV?$binder2nd@U?$not_equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@@2@@Z' : identifier was truncated to '255' characters in the browser information
        D:"zsm"iHD-1.0"UTil.cpp(25) : see reference to class template instantiation 'std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> > > >' being compiled
Generating Code...
Linking...
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __environ already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___argv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___argc already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winminor already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winver already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __osver already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in libcmt.lib(crt0dat.obj)
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
Release/FileReveiverV2.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

FileReveiverV2.exe - 23 error(s), 11 warning(s)


解决方法:Project->Settings->general->Microsoft Foundation Class,选择Use MFC in a Shared DLL.

posted on 2008-11-21 13:21  山径山精  阅读(4433)  评论(1编辑  收藏  举报

导航