我试图在Windows下构建libdwarf api,但我收到以下编译错误。试图编译libdwarf,给出未定义的错误
in dwarf_elf_access.c
undefined type Elf32_Ehdr,
undefined symbol EI_CLASS
undefined symbol ELFCLASS64
undefined symbol ELFDATA2LSB
...
我做了所有头文件和源文件的搜索,我无法找到他们定义的任何地方,据我所知。这些unix/linux特定的定义是?如果这些错误应该如何在Windows下解决?
感谢
您正在使用什么编译器?我在我的答案中假设了gcc。 – terminus 2010-08-27 20:53:48
@terminus感谢您的回复。我使用的编译器是borland/embar,但是在使用MSVC9编译时遇到同样的问题 – greatwolf 2010-08-27 22:08:34
将其更正为更具体。 – terminus 2010-08-27 22:49:58