Home > Back-end >  VS2013 next turn cstrings error string
VS2013 next turn cstrings error string

Time:10-06

I use the code
Void Tanst (string & amp; STR, cstrings & amp; CSTR)
{
CSTR=STR. C_str ();
}
Transformation, but the error is shown as:

1> APIC. Obj: error LNK2005: "void __cdecl Tanst (class STD: : basic_string & lt; Char, struct STD: : char_traits & lt; char> Class, STD: : allocator & , class ATL: : CStringT> & amp;) "(? Tanst @ @ YAXAAV? $basic_string @ DU? $char_traits @ D @ STD @ @ V? $allocator @ @ 2 D @ @ STD @ @ AAV? $CStringT @ DV? $StrTraitMFC_DLL @ DV? @ $ChTraitsCRT @ D ATL @ @ @ @ @ ATL @ @ @ Z) have been ADDTESTINFO. Obj defined in


1> TEST. Obj: error LNK2005: "void __cdecl Tanst (class STD: : basic_string & lt; Char, struct STD: : char_traits & lt; char> Class, STD: : allocator & , class ATL: : CStringT> & amp;) "(? Tanst @ @ YAXAAV? $basic_string @ DU? $char_traits @ D @ STD @ @ V? $allocator @ @ 2 D @ @ STD @ @ AAV? $CStringT @ DV? $StrTraitMFC_DLL @ DV? @ $ChTraitsCRT @ D ATL @ @ @ @ @ ATL @ @ @ Z) have been ADDTESTINFO. Obj defined in

May I ask you a great god under where it is wrong? Thank you very much!
  • Related