samhocevar / portable-file-dialogs

💬 Portable GUI dialogs library, C++11, single-header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows compiling error

liwind opened this issue · comments

commented

// Check whether a program is present using “which”

quotation mark using GB2312 which is Chinese character

suggests modified it to utf-8 character to avoid this error

The character is encoded in UTF-8, as 0xE2 0x80 0x9C (for Unicode character U+201C Left Double Quotation Mark).

What Git client do you use? Maybe it has corrupted your file locally. Also, what compiling error do you get?

commented

It is perfect in my linux mint with Clion. But in my windows10 (chinese language) with visual studio 2019, it throws Compiler Error C2334: unexpected token(s) preceding ': or {'; skipping apparent function body.
After checking, the Double Quotation Mark is Chinese character. When i modified it to english character, it performs well.

I added a . character at the end of this line to see what happens. These two characters also appear on line 408 and 425 so it is weird that you would only get the error for line 542. Please let me know if the problem disappeared!

commented

Great, the problem disappeared! Thanks.
It is a strange format issue with VS2019.