当前位置: 技术问答>linux和unix
make的编译信息为什么有乱码?
来源: 互联网 发布时间:2016-11-15
本文导语: make的编译信息为什么有乱码? 如下 hbainfo.cpp:36:63: warning: deprecated conversion from string constant to 鈉har*? hbainfo.cpp: In member function 鈙td::string hba_info_c::hba_findhbahostname(const std::string&)? hbainfo.cpp:202:50: warning: deprecat...
make的编译信息为什么有乱码?
如下
hbainfo.cpp:36:63: warning: deprecated conversion from string constant to 鈉har*?
hbainfo.cpp: In member function 鈙td::string hba_info_c::hba_findhbahostname(const std::string&)?
hbainfo.cpp:202:50: warning: deprecated conversion from string constant to 鈉har*?
如下
hbainfo.cpp:36:63: warning: deprecated conversion from string constant to 鈉har*?
hbainfo.cpp: In member function 鈙td::string hba_info_c::hba_findhbahostname(const std::string&)?
hbainfo.cpp:202:50: warning: deprecated conversion from string constant to 鈉har*?
|
肯定是你的终端模拟器的问题
|
编码格式改改看
|
export LANG=C
make
make
|
使用Secure CRT时遇到过,将字符编码换成UTF8显示就正常了。
|
终端字符集设置不对, 在Linux的shell里,就正常的.