Skip to content
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

fix compile error #6

Conversation

duiniuluantanqin
Copy link

1>FFVS\source\libgpg-error\src\logging.c(1288,38): error C2001: newline in constant

fix compile error

@Sibras
Copy link
Member

Sibras commented Jul 5, 2024

What version of Visual Studio are you using. This has been tested with VS 2015, 2017, 2019 and 2022 without issue.
The change you have introduced changes behaviour (its meant to print the UTF character for 3 dots) so im hesitant to apply it as a result

@duiniuluantanqin
Copy link
Author

I am using VS2022 with a Chinese environment, and it is throwing compilation errors.

error C2001: newline in constant

I need to modify those 3 dots to compile successfully.

If you think it's unnecessary, you can close it.

@Sibras
Copy link
Member

Sibras commented Jul 6, 2024

@duiniuluantanqin
Copy link
Author

Try setting the utf flag and see if that fixes it. https://learn.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170

Yeah, it works. It seems to be caused by the encoding format, so I still think those 3 dots should be modified instead of adding the /utf-8 option.

@Sibras Sibras closed this in 1ceacc3 Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants