开发者

C++ compile error messages not showing properly in PuTTY

开发者 https://www.devze.com 2023-02-07 09:37 出处:网络
If I compile a C++ program with errors in Linux connected through PuTTY, I see error messages like: g++ a.cpp

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

精彩评论

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