1 Program "g++" not found in PATH
安装g++: yum install gcc gcc-g++
2 Error with command: gdb --version
解决方法:yum install gdb
3 eclipse中源文件中文乱码:windows-->preferences-->General-->Content Types-->点击右边窗口中的Text,选择C Source File,在Default encoding【在窗口最下边,如果看不到,拖动滑块下拉即可看到】中输入GBK,点击OK。
windows-->preferences-->General-->Workspace-->选择Text file encoding中的Other,选择GBK,如果没有直接输入GBK,点击“Apply
4 忽略语法错误
Preferences->C/C++ -> Code Analysis ->取消勾选 Syntax and Semantic Errors
5 error while loading shared libraries
问题表示系统不知道.so文件放在哪个目录下。
解决办法:在/etc/ld.so.conf中加入xx.so所在的目录,比如在/etc/ld.so.conf中加入/usr/local/lib这一行后,执行/sbin/ldconfig命令来更新生效,即可解决问题