undefined reference to __cxa_end_cleanup


/tmp/ccJ1QB70.o:在函数‘atrace_call_test()’中:
example_02.cpp:(.text+0xae):对‘__cxa_end_cleanup’未定义的引用
/tmp/ccJ1QB70.o:(.ARM.extab+0x18):对‘__gxx_personality_v0’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [test_example] 错误 1

添加库文件:

-lsupc++ -lstdc++

你可能感兴趣的:(linux,调试技巧)