开发者

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 u开发者_开发技巧nder windows?

Thanks


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


Terminus is right, libdwarf depends on the libelf library.

I successfully compiled this one with msvc2008 and 2010. http://directory.fsf.org/project/libelf/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜