Prob beim Linken



  • Hi,
    beim Linken kommen immer diese Fehler:

    Linking...
    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> >(void)" (??1?basic_string@DU?basic\_string@ DU?char_traits@D@std@@V?allocator@D@2@@std@@QAE@XZ) already defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class std::basic\_string,class std::allocator > & \_\_thiscall std::basic\_string,class std::allocator >::assign(class s td::basic\_string,class std::allocator > const &,unsigned int,unsigned int)" (?assign@?basic_string@DU?char_traits@D@std@@V?char\_traits@D@std@@V?allocator@D@2@@std@@QAEAAV12@ABV12@II@Z) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Tidy(bool)" (?_Tidy@?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2@@std@@AAEX_N@Z)alreadydefinedinmain.objmsvcprt.lib(MSVCP60.dll):errorLNK2005:"private:void__thiscallstd::basic_string<char,structstd::char_traits<char>,classstd::allocator<char>>::_Copy(unsignedint)"(?_Copy@?allocator@D@2@@std@@AAEX\_N@Z) alread y defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void \_\_thiscall std::basic\_string<char,struct std::char\_traits<char>,class std::allocator<char> >::\_Copy(unsigned int)" (?\_Copy@?basic_string@DU?chartraits@D@std@@V?char_traits@D@std@@V?allocator@D@2@@std@@AAEXI@Z)
    already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) already defined in libcpd.lib(string.obj)
    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::allocator<char>
    const &)" (??0?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2@@std@@QAE@ABV?allocator@D@2@@std@@QAE@ABV?allocator@D@1@@Z) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::ios_base::Init::Init(void)" (??0Init@ios_base@std@@QAE@XZ) already defined in libcpd.lib(iostream.obj)
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::ios_base::Init::~Init(void)" (??1Init@ios_base@std@@QAE@XZ) already defined in libcpd.lib(iostream.obj)
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::_Winit::_Winit(void)" (??0_Winit@std@@QAE@XZ) already defined in libcpd.lib(wiostrea.obj)
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::_Winit::~_Winit(void)" (??1_Winit@std@@QAE@XZ) already defined in libcpd.lib(wiostrea.obj)
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Eos(unsigned int)" (?_Eos@?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2@@std@@AAEXI@Z)alreadydefinedinmain.objmsvcprt.lib(MSVCP60.dll):errorLNK2005:"private:bool__thiscallstd::basic_string<char,structstd::char_traits<char>,classstd::allocator<char>>::_Grow(unsignedint,bool)"(?_Grow@?allocator@D@2@@std@@AAEXI@Z) a lready defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: bool \_\_thiscall std::basic\_string<char,struct std::char\_traits<char>,class std::allocator<char> >::\_Grow(unsigned int,bool)" (?\_Grow@?basic_string@DU?chartraits@D@std@@V?char_traits@D@std@@V?allocator@D@2@@std@@AAE
    _NI_N@Z) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Split(void)" (?_Split@?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2@@std@@AAEXXZ) alread y defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "void \_\_cdecl std::\_Xran(void)" (?_Xran@std@@YAXXZ) already defined in libcpd.lib(string.obj) msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: \_\_thiscall std::basic\_string,class std::allocator >::basic\_string,class std::allocator >(class std::basic\_string,class std::allocator > const &)" (??0?basic_string@DU?chartraits@D@std@@V?char_traits@D@std@@V?allocator@D@2@@std@@QAE@ABV01@@Z) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(char co
    nst *,unsigned int)" (?assign@?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2@@std@@QAEAAV12@PBDI@Z) already defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class std::basic\_string,class std::allocator > & \_\_thiscall std::basic\_string,class std::allocator >::erase(unsigned int,unsigned int)" (?erase@?basic_string@DU?char_traits@D@std@@V?char\_traits@D@std@@V?allocator@D@2@@std@@QAEAAV12@II@Z) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2@@std@@QBE PBDXZ) already defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: virtual __thiscall std::strstream::~strstream(void)" (??1strstream@std@@UAE@XZ) already defined in libcpd.lib(strstrea.obj) msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: virtual \_\_thiscall std::basic\_iostream >::~basic\_iostream >(void)" (??1?basic_iostream@DU?chartraits@D@std@@@std@@UAE@XZ)alreadydefinedinmain.objmsvcprt.lib(MSVCP60.dll):errorLNK2005:"public:virtual__thiscallstd::basic_ios<char,structstd::char_traits<char>>:: basic_ios<char,structstd::char_traits<char>>(void)"(??1?char_traits@D@std@@@std@@UAE@XZ) alr eady defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: virtual \_\_thiscall std::basic\_ios<char,struct std::char\_traits<char> >::~basic\_ios<char,struct std::char\_traits<char> >(void)" (??1?basic_ios@DU?chartraits@D@std@@@std@@UAE@XZ)alreadydefinedinmain.objmsvcprt.lib(MSVCP60.dll):errorLNK2005:"public:__thiscallstd::basic_iostream<char,structstd::char_traits<char>>::basic_iostream<char,structstd::char_traits<char>>(classstd::basic_streambuf<char,structstd::chartraits<char>>)"(??0?char_traits@D@std@@@std@@UAE@XZ) already defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: \_\_thiscall std::basic\_iostream<char,struct std::char\_traits<char> >::basic\_iostream<char,struct std::char\_traits<char> >(class std::basic\_streambuf<char,struct std::char_traits<char> > *)" (??0?bas
    ic_iostream@DU?char_traits@D@std@@@std@@QAE@PAV?char\_traits@D@std@@@std@@QAE@PAV?basic_streambuf@DU?char\_traits@D@std@@@1@@Z) already defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: void \_\_thiscall std::ios\_base::clear(int,bool)" (?clear@ios\_base@std@@QAEXH\_N@Z) already defined in libcpd.lib(ios.obj) msvcprt.lib(MSVCP60.dll) : error LNK2005: "class std::basic\_ostream > & \_\_cdecl std::operator<<(class std::basic\_ostream > &,char const *)" (??6std@@YAAAV?basic_ostream@DU?char_ traits@D@std@@@0@AAV10@PBD@Z) already defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class std::basic\_string,class std::allocator > & \_\_thiscall std::basic\_string,class std::allocator >::append(unsigne d int,char)" (?append@?basic_string@DU?char_traits@D@std@@V?char\_traits@D@std@@V?allocator@D@2@@std@@QAEAAV12@ID@Z) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: virtual __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (??1?basic_streambuf@DU?basic\_streambuf@DU?char_traits@D@std@@@std@@UAE@XZ)
    already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "protected: void __thiscall std::strstreambuf::_Init(int,char *,char *,int)" (?_Init@strstreambuf@std@@IAEXHPAD0H@Z) already defined in libcpd.lib(strstrea.obj)
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(void)" (??0_Lockit@std@@QAE@XZ) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in libcpd.lib(locale0.obj)
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: virtual __thiscall std::strstreambuf::~strstreambuf(void)" (??1strstreambuf@std@@UAE@XZ) already defined in libcpd.lib(strstrea.obj)
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: unsigned char & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Refcnt(char const *)" (?_Refcnt@?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2 @@std@@AAEAAEPBD@Z) already defined in main.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: char & \_\_thiscall std::basic\_string,class std::allocator >::operator[](unsigned int)" (??A?basic_string@DU?chartraits@D@std@@V?char_traits@D@std@@V?allocator@D@2@@std@@QAEAAD
    I@Z) already defined in main.obj
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Freeze(void)" (?_Freeze@?basic_string@DU?basic\_string@DU?char_traits@D@std@@V?allocator@D@2@@std@@AAEXXZ) alre ady defined in main.obj MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj) MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strtol already defined in LIBCD.lib(strtol.obj) MSVCRT.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj) MSVCRT.lib(MSVCRT.dll) : error LNK2005: "public: int \_\_thiscall type\_info::operator==(class type\_info const &)const " (??8type\_info@@QBEHABV0@@Z) already defined in LIBCD.lib(typinfo.obj) MSVCRT.lib(MSVCRT.dll) : error LNK2005: "public: int \_\_thiscall type\_info::before(class type\_info const &)const " (?before@type\_info@@QBEHABV1@@Z) already defined in LIBCD.lib(typinfo.obj) LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library main.obj : error LNK2001: unresolved external symbol "void \_\_cdecl ParseCommand(class std::basic\_string,class std::allocator >,char *)" (?ParseCommand@@YAXV?basic_string@DU?chartraits@D@std@@V?char_traits@D@std@@V?allocator@D
    @2@@std@@PAD@Z)
    Debug/main.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    main.exe - 41 error(s), 1 warning(s)

    was kann ich tun?


Anmelden zum Antworten