Android源码编译时遇到的问题:error:reference 'counts' cannot be declared 'mutable'

来源:互联网 发布:motion graphic软件 编辑:程序博客网 时间:2024/05/21 20:33
In file included from external/oprofile/libpp/arrange_profiles.cpp:24:0: 
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive] 
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/arrange_profiles.o] Error 1 
解决办法: 
external/oprofile/libpp/format_output.h 

把: 
mutable counts_t & counts; 
改为: 
counts_t & counts;