undefined reference to ‘android::CallStack::CallStack
#include <utils/CallStack.h>#include<utils/Log.h>android::CallStack stack;stack.update();stack.dump(1);//输出到printfstack.log("dsfdsfds");//输出到logcat: undefined reference to 'andro...
#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就明白了
更多推荐
所有评论(0)