Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to compile libdwarf, gives undefined errors

I'm trying to build the libdwarf api under windows but I'm receiving the following compile errors.

in dwarf_elf_access.c
undefined type Elf32_Ehdr,
undefined symbol EI_CLASS
undefined symbol ELFCLASS64
undefined symbol ELFDATA2LSB
...

I did a search through all the header files and source files and I couldn't find them defined anywhere as far as I could tell. Are these unix/linux specific definitions? If it is how should these errors be resolved under windows?

Thanks

like image 964
greatwolf Avatar asked Mar 16 '26 14:03

greatwolf


1 Answers

It seems you need to link the libelf library too (the dwarf library uses it).

like image 182
terminus Avatar answered Mar 18 '26 02:03

terminus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!