关于 error: 'fprintf' was not declared in this scope的错误

今天在Ubuntu10.04下做build oms1.5的时候,报了这么一个错误:
frameworks/base/tools/aidl/AST.cpp:10: error: 'fprintf' was not declared in this scope

后来发现本机的gcc g++ 是4.4版,安装4.3, 重新链接,问题解决。

apt-get install gcc-4.3 g++-4.3

进入/usr/bin

cd /usr/bin

建个软连接

ln -s gcc-4.3 gcc

ln -s g++-4.3 g++

然后进入android目录下,执行make,就可以了。

猜你喜欢

转载自hcleon.iteye.com/blog/796708