开发者

C++ compile error messages not showing properly in PuTTY

If I compile a C++ program with errors in Linux connected through PuTTY, I see error messages like:

g++ a.cpp
a.cpp: In function âint main()â:
a.cpp:38: error: expected primary-expression before â)â token
a.cpp:38: error: âwaitpidâ was not declared in this scope

Any idea about why the ch开发者_如何学编程aracter â is coming?


Check to make sure command locale returns the same encoding which set in PuTTY configuration Translation->Received data assumed to be in which character set.


Set the PuTTY charset to UTF-8 in the options.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜