打算用codeblocks+wxWidgets编写一个应用软件,结果发现一旦程序中包含中文,就无法编译通过。查找相关资料,发现之需要在菜单中配置一下,将编码改为gbk即可。
具体设置如下:
settings -> compiler and debugger settings -> global compiler settings -> compiler settings -> Other Options, 在其中输入语句
-finput-charset=GBK
保存即可。
相关资源:CodeBlocks中文版