undefined reference to ‘android::CallStack::CallStack
?
?
#include <utils/CallStack.h>
?? ? #include<utils/Log.h>
?
android::CallStack stack;
?? ? ?stack.update();
?? ? ?stack.dump(1);?
?? ? ?//輸出到printf
?? ? ?stack.log("dsfdsfds");?
?? ? ?//輸出到logcat
?
?
?
: undefined reference to 'android::CallStack::CallStack()'
hardware/interfaces/light/2.0/default/Light.cpp:155: error: undefined reference to 'android::CallStack::update(int, int)'
hardware/interfaces/light/2.0/default/Light.cpp:156: error: undefined reference to 'android::CallStack::dump(int, int, char const*) const'
hardware/interfaces/light/2.0/default/Light.cpp:158: error: undefined reference to 'android::CallStack::log(char const*, android_LogPriority, char const*) const'
hardware/interfaces/light/2.0/default/Light.cpp:180: error: undefined reference to 'android::CallStack::~CallStack()'
?
?
https://stackoverflow.com/questions/55844214/trouble-with-undefined-reference-to-callstack-library
老外還是牛逼的
libutilscallstack
?
"libutils","libcutils",
以前的不好使了
得加libutilscallstack??
確實看makefile就明白了
?
總結
以上是生活随笔為你收集整理的undefined reference to ‘android::CallStack::CallStack的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SHELLEXECUTEINFO
- 下一篇: caj文件转pdf、QQ文件、微信视频