c++ - Link error: unresolved operator << for std::basic_ostream with CStringT -


I have reconstructed some of my Visual C ++ (7.1) project libraries and did not solve the problem with Linker can go.

The project combines standard Windows libraries along with MFCs, all MBCSs

Somewhere, something like this:

std :: stringstream sstr; Sstr & lt; & Lt; M_MyCStringVar & lt; & Lt; Std :: endl;

(I need this line, along with some other, basic & stream & lt; & lt;)

Unless I have 2 other libraries in 1

Suddenly, all my exe linkser errors are:

BasicFunctionsD.lib (CAccess.obj): Error (library) LNK 2019: Unsolved external symbol "class std :: basic_ostream> & __cdecl Operator & lt; <(class std :: basic_ostream> & amp; class ATL :: CStringT >> const & amp;) "(?? 6 @YAAAV? $ Basic_ostream @DU? $ Char_traits @ D @ std @@ @ Std @@ AAVA 01 @ ABV? $ CStringT @ DV? $ StrTraitMFC_DLL @ DV? $ ChTraitsCRT @ D @ ATL @@@@ ATL @@ @ Z) Regarded in the function "protected: zero __thiscall CAccessor :: CreateCategory (int, char const *, char const *)" (? CreateCategory @ CAccessor @@ IAEXHPBD0 @ Z)

(The above code is not affected by the library merge Was at least not straightforward)

As far as I can identify, & lt; & Lt; Operator and CSTing have not been found for original ostream.

Maybe the MFC versions of the basics did not get the idiom?

But I do not know how to fix it or even start from where the search for the real problem.

Any sign will be good

arg ..

Simple reason: There is no std :: ostream operator with CString ... this was my own code and I just did not remember ...: During cleaning, the function went into a namespace and Done

D-Oh!

Nomrage Stupid Klenpohnt Knuthevden {std :: Osterm and Operator & lt; & Lt; (Stud :: Ostream and Co., Const. Cstaining and String) & Lt; & Lt; (LPCTTR) str; Return s;}}


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -