[C++]vs2019 running c++ error: error C1075 "{": no matching token found

The source code was pulled from git, but I didn’t change anything. As a result, more than 100 errors were reported. This is obviously not a code problem. Finally, I found that I need to replace LF with CRLF. The modification method is very simple, just open the lower right corner of the source code in VS2019 Just switch. as shown in the picture

The reason for the error is that the source code downloaded by github was developed by linux. The default line break symbol for linux is LF, but it is not for windows, so it needs to be changed to a line break character on windows.

Guess you like

Origin blog.csdn.net/FL1623863129/article/details/131280491