-
Hi David, Now, I created a simple main file with requested inclusion... I moved the libdwarf.a in the same directory where stays "main.c". |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This works: |
Beta Was this translation helpful? Give feedback.
-
I'm feeling a bit confused because with a command line like yours I get Oh. This is because you lost the back-quotes, failing to mark your actual line as code to the discussion . Ok. No problem. Question: in the place you did your libdwarf build there will be a config.h and report what these do. What I get here is q3 543: grep ZLIB config.h I suspect you have just In that case, you MUST link in -lz yourself, since libdwarf.a is an archive and I v0.9.0 unless one has both ZLIB and ZSTD a similar situation arises I hope this helps. |
Beta Was this translation helpful? Give feedback.
I'm feeling a bit confused because with a command line like yours I get
gcc: error: unrecognized command-line option ‘--cflags’
gcc: error: unrecognized command-line option ‘--libs’; did you mean ‘--libs=’?
Oh. This is because you lost the back-quotes, failing to mark your actual line as code to the discussion . Ok. No problem.
Question: in the place you did your libdwarf build there will be a config.h
Please do
grep ZLIB config.h
grep ZSTD config.h
and report what these do.
What I get here is
q3 543: grep ZLIB config.h
#define HAVE_ZLIB 1
#define HAVE_ZLIB_H 1
q3 544: grep ZSTD config.h
#define HAVE_ZSTD 1
#define HAVE_ZSTD_H 1
I suspect you have just
#define HAVE_ZLIB 1
#define HAVE_ZLI…