-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error C2220 #76
Comments
Looks like the file contains a character that cannot be returned in your code page, see https://msdn.microsoft.com/en-us/library/ms173715.aspx. Can you try saving that for (half.h) as utf8 ? |
Thanks Chris,also thanks for Clovett's reply.It's strange that Visual Studio will still report the error after I saved the file with UTF-8 encoding.However,the problem is solved after I replaced the curly quotation characters.I'm sorry about my poor English.I will close this issue. |
You're English is fine, thanks for closing. I'll follow up with vc complete this on why this happened. Turns out the file was utf8 expires it just doesn't have a bite order Mark.... |
By the way there is a way to fix this using /utf-8 compiler flag, if you add this to the mSVC section of the CMakeLists.txt: More info here: https://forum.kde.org/viewtopic.php?f=74&t=139230. |
It's not ok for me to save half.h with encoding UTF-8, but UTF-8 with BOM works correctly. |
Hello,I follow the steps but encountered an error c2220 while running build.cmd.
and I try to disable treat warnings as errors but it`s not work.
Is that because my system language is Chinese?
The text was updated successfully, but these errors were encountered: