对源文件安装时,./configure时出现以下错误
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: in `/usr/skyeye-1.3.0_rc1':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
config.log中的文件这样
configure:2944: checking for C++ compiler default output file name
configure:2966: g++ conftest.cpp >&5
configure:2970: $? = 0
configure:3008: result: a.out
configure:3027: checking whether the C++ compiler works
configure:3037: ./a.out
./configure: line 3039: ./a.out: cannot execute binary file
configure:3041: $? = 126
configure:3048: error: in `/usr/skyeye-1.3.0_rc1':
configure:3052: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
不知道是什么原因,跪求解决方法