backward-cpp icon indicating copy to clipboard operation
backward-cpp copied to clipboard

cmake requires minimum version 3.10, and stack information does not show function names

Open sudo-rm-rf-run opened this issue 3 years ago • 1 comments

image Hello, I am in my project requiring cmake minimum version 3.10 and appear stack does not show the function name. Then backward project only modified cmake to require the minimum version of 3.10, which is the same problem, may I ask what causes this?

sudo-rm-rf-run avatar Jan 20 '23 10:01 sudo-rm-rf-run

You appear to be targeting Linux x86_64, you might have forgotten to install the stack walking and stack resolver libraries. Read the doc to find out which library you can use and what they do. And use whatever package manager of your Linux distribution to install it.

backward-cpp is a simple header only library. It is configured via the preprocessor. And you have to link to the libraries you want to use for walking the stack and resolving traces.

The CMake support is supposed to make it convenient to find and add the #define and link to the libraries. But it can only find what is installed of course.

bombela avatar Feb 04 '23 00:02 bombela