请问linux上要怎么make带中文字符的程序呢?
Closed this issue · 2 comments
RuBP17 commented
它会报类似这样的错:
error: stray ‘\346’ in program
22 | p1���, p1河,
error: expected unqualified-id before ‘:’ token
47 | case Action::荣和:
| ^
icehehehe commented
I think you should use GBK encoding.
Agony5757 commented
它会报类似这样的错: error: stray ‘\346’ in program 22 | p1���, p1河, error: expected unqualified-id before ‘:’ token 47 | case Action::荣和: |
用clang(推荐),或者用我最近的Remove-Unicode-Character分支(更新不一定及时)