error when using <afx.h>
error when using <afx.h>
hi,
currently i am rewriting application developed by opendwg to dwgdirectc++. in my console application i want to use cobject class. so i have used the header file <afx.h>. when using the header file i got the below errors. please help me to solve the below issue.
error 1 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<char,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 exundocontroller.obj msvcprt.lib
error 2 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?$char_traits@d@std@@v?$alloc ator@d@2@@std@@qae@xz) already defined in exundocontroller.obj msvcprt.lib
error 3 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> >(char const *)" (??0?$basic_string@du?$char_traits@d@std@@v?$alloc ator@d@2@@std@@qae@pbd@z) already defined in exundocontroller.obj msvcprt.lib
error 4 error lnk2005: "public: __thiscall std::exception::exception(char const * const &,int)" (??0exception@std@@qae@abqbdh@z) already defined in libcmtd.lib(stdexcpt.obj) msvcrt.lib
error 5 error lnk2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@uae@xz) already defined in libcmtd.lib(stdexcpt.obj) msvcrt.lib
error 6 error lnk2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@qae@abv01@@z) already defined in libcmtd.lib(stdexcpt.obj) msvcrt.lib
error 7 error lnk2005: _malloc already defined in libcmtd.lib(dbgheap.obj) msvcrt.lib
error 8 error lnk2005: _realloc already defined in libcmtd.lib(dbgheap.obj) msvcrt.lib
error 9 error lnk2005: _free already defined in libcmtd.lib(dbgheap.obj) msvcrt.lib
error 10 error lnk2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@qae@abqbd@z) already defined in libcmtd.lib(stdexcpt.obj) msvcrt.lib
error 11 error lnk2005: _memmove already defined in libcmtd.lib(memmove.obj) msvcrt.lib
error 12 error lnk2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@qae@xz) already defined in libcmtd.lib(stdexcpt.obj) msvcrt.lib
error 13 error lnk2005: _memmove_s already defined in libcmtd.lib(memmove_s.obj) msvcrt.lib
error 14 error lnk2005: _isdigit already defined in libcmtd.lib(_ctype.obj) msvcrt.lib
error 15 error lnk2005: _strchr already defined in libcmtd.lib(strchr.obj) msvcrt.lib
error 16 error lnk2005: _atoi already defined in libcmtd.lib(atox.obj) msvcrt.lib
error 17 error lnk2005: _sprintf already defined in libcmtd.lib(sprintf.obj) msvcrt.lib
error 18 error lnk2005: _isspace already defined in libcmtd.lib(_ctype.obj) msvcrt.lib
error 19 error lnk2005: _wcstol already defined in libcmtd.lib(wcstol.obj) msvcrt.lib
error 20 error lnk2005: _isalnum already defined in libcmtd.lib(_ctype.obj) msvcrt.lib
error 21 error lnk2005: _isalpha already defined in libcmtd.lib(_ctype.obj) msvcrt.lib
error 22 error lnk2005: _strncmp already defined in libcmtd.lib(strncmp.obj) msvcrt.lib
error 23 error lnk2005: _toupper already defined in libcmtd.lib(toupper.obj) msvcrt.lib
error 24 error lnk2005: _iswalnum already defined in libcmtd.lib(_wctype.obj) msvcrt.lib
error 25 error lnk2005: _iswlower already defined in libcmtd.lib(_wctype.obj) msvcrt.lib
error 26 error lnk2005: _getenv already defined in libcmtd.lib(getenv.obj) msvcrt.lib
error 27 error lnk2005: _ldexp already defined in libcmtd.lib(ldexp.obj) msvcrt.lib
error 28 error lnk2005: __logb already defined in libcmtd.lib(ieeemisc.obj) msvcrt.lib
error 29 error lnk2005: __vswprintf already defined in libcmtd.lib(vswprint.obj) msvcrt.lib
error 30 error lnk2005: _wcspbrk already defined in libcmtd.lib(wcspbrk.obj) msvcrt.lib
error 31 error lnk2005: _iswdigit already defined in libcmtd.lib(_wctype.obj) msvcrt.lib
error 32 error lnk2005: _strpbrk already defined in libcmtd.lib(strpbrk.obj) msvcrt.lib
error 33 error lnk2005: _strcspn already defined in libcmtd.lib(strcspn.obj) msvcrt.lib
error 34 error lnk2005: _vsprintf already defined in libcmtd.lib(vsprintf.obj) msvcrt.lib
error 35 error lnk2005: __errno already defined in libcmtd.lib(dosmap.obj) msvcrt.lib
error 36 error lnk2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@aae@abv0@@z) already defined in libcmtd.lib(typinfo.obj) msvcrt.lib
error 37 error lnk2005: "private: class type_info & __thiscall type_info

erator=(class type_info const &)" (??4type_info@@aaeaav0@abv0@@z) already defined in libcmtd.lib(typinfo.obj) msvcrt.lib
error 38 error lnk2005: __strnicmp already defined in libcmtd.lib(strnicmp.obj) msvcrt.lib
error 39 error lnk2005: _exit already defined in libcmtd.lib(crt0dat.obj) msvcrt.lib
error 40 error lnk2005: ___iob_func already defined in libcmtd.lib(_file.obj) msvcrt.lib
warning 41 warning lnk4098: defaultlib 'msvcrt' conflicts with use of other libs; use /nodefaultlib:library odsampledwgex
warning 42 warning lnk4199: /delayload

leacc.dll ignored; no imports found from oleacc.dll odsampledwgex
error 43 fatal error lnk1169: one or more multiply defined symbols found d:\vidya\dwgdirect\dd_nonlibs\examples\odsampledwg \debug\odsampledwgex.exe 1