i was replacing variable names in a large project using the replace all function.
next time i go to compile, i have 1600+ errors. they're all in library files like xlocnum, string, xdebug, stdexcept. how do I get rid of these? can these files be replaced??
Error 18 error C2039: 'c_str' : is not a member of 'std::_DebugH开发者_Go百科eapString' c:\program files\microsoft visual studio 9.0\vc\include\xlocale 343
Error 3 error C2504: 'basic_string' : base class undefined c:\program files\microsoft visual studio 9.0\vc\include\xdebug 110
From the output you provided it looks like applied the find/replace files in "VC++ Include Directories". Go into the include directories and check the modified dates - if some of them are recent then you will need to restore them either from a backup or reinstall/repair the SDK and quite possibly Visual Studio itself.
Without even a single error to look at, I can only assume you're linking the same libraries twice, possibly in debug and release mode at the same time. So... don't do that :)
As a general rule of thumb, when you think you found a compiler error in something as well worked on as GCC, the Microsoft C++ compiler, or their C# compiler, chances are it's you who's doing something wrong.
精彩评论