Eclipse CDT 编译运行出错时,控制台信息乱码

控制台信息如下:

 

**** Build of configuration Debug for project T1 ****

**** Internal Builder is used for build               ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc/T1.o ../src/T1.cpp
g++ -oT1.exe src/T1.o
src/T1.o锛氬湪鍑芥暟鈥榤ain鈥欎腑锛?
C:/Users/Gavin/cpp_workspace/T1/Debug/../src/T1.cpp:12锛氬鈥楻eversal(char*)鈥欐湭瀹氫箟鐨勫紩鐢?
collect2: ld returned 1 exit status
Build error occurred, build is stopped
Time consumed: 1210  ms. 

 

解决方法:

     在C/C++下的Enviornment中添加LANG变量,值为en_US

 

解决后控制台信息:

 

**** Build of configuration Debug for project T1 ****

**** Internal Builder is used for build               ****
g++ -oT1.exe src/T1.o
src/T1.o: In function `main':
C:/Users/Gavin/cpp_workspace/T1/Debug/../src/T1.cpp:12: undefined reference to `Reversal(char*)'
collect2: ld returned 1 exit status
Build error occurred, build is stopped
Time consumed: 501  ms. 

你可能感兴趣的:(eclipse,build,reference,function,c)