gcc -v 发现使用的gcc版本是4.7 安装gcc-4.4(or 4.3), 重新链接,问题解决。 apt-get install gcc-4.4 g++-4.4 进入/usr/bin cd /usr/bin 建个软连接 ln -s gcc-4.3 gcc ln -s g++-4.3 g++