[Problem-solving] on the VS project after running for the computer prompts "unable to open source file '***. H'" and "global scope is not '***'" and so wrong solution

Disclaimer: This article is a blogger original article. Reproduced please contact bloggers authorization. Bloggers public micro-channel number] [Department of Knowing and Doing the campus. https://blog.csdn.net/cxh_1231/article/details/86506726

If you have the following operations:

  • A will written on a computer VS project, copied and run on computer B;
  • Written on VS A computer program, reinstall the system, reinstall VS, run again

You may encounter the following error:

  • E1696 Can not open source file "XXX .h"
  • E0282 global scope is no "so and so"
  • E0135 class template "std :: _ Locbase <_Dummy>" no member "collate" 
  • And so on error

Figure:

 So how do you solve it?

1, right-click the Solution Explorer in the project name, select " Redirect project "

2, select a SDK version, click " OK "

 3, a "re-terminate the target";

4, run again to compile.

 

Guess you like

Origin blog.csdn.net/cxh_1231/article/details/86506726