hello every1,

I am new to VC++. I have assignement in which i am trying to port VC 6
code to VC 2005. Although I removed some of the common errors, I am
getting some linking errors while building the sol'n.
These are as follows:


LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other

libs; use /NODEFAULTLIB:library


USBInfo.lib(USBInfoInterface.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) private: void __thiscall
std::basic_string,class
std::allocator >::_Copy(unsigned int)"
(__imp_?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@=
=ADAAEXI@Z)

referenced in function "public: __thiscall
CUSBInfoInterface::CUSBInfoInterface(void)"
(??0CUSBInfoInterface@@QAE@XZ)


USBInfo.lib(USBInfo.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) private: void __thiscall
std::basic_string,class
std::allocator >::_Copy(unsigned int)"
(__imp_?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@=
=ADAAEXI@Z)

.=2E
.=2E.
.=2E....
.=2E......


I am using /MDD while bulding in /debug mode.
what should be done to remove these errors..
plz help me=20


Thx in advance!

Re: lnk 2019..... by Ulrich

Ulrich
Mon Jun 26 02:39:24 CDT 2006

Sach !! wrote:
> I am new to VC++. I have assignement in which i am trying to port VC 6
> code to VC 2005. Although I removed some of the common errors, I am
> getting some linking errors while building the sol'n.
> These are as follows:
>
>
> LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
>
> libs; use /NODEFAULTLIB:library

This is typically the result of mixing runtimes. Note that you can do so
indirectly by using a .lib that uses the wrong runtime.

> USBInfo.lib(USBInfoInterface.obj) : error LNK2019: unresolved external
> symbol "__declspec(dllimport) private: void __thiscall
> std::basic_string,class
> std::allocator >::_Copy(unsigned int)"
> (__imp_?_Copy@?$basic_string@DU?$char_traits@D@std@@V
> ?$allocator@D@2@@std@@­AAEXI@Z)

I can't tell if that is the case, but make sure that you recompile all(!)
libraries and DLLs with your current compiler. It could be that this lib is
referencing another lib that only came with VC6.

Uli