Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated enum type #32

Closed
tathanhdinh opened this issue May 14, 2017 · 1 comment
Closed

Duplicated enum type #32

tathanhdinh opened this issue May 14, 2017 · 1 comment
Assignees

Comments

@tathanhdinh
Copy link

Many thanks for the library. I am now testing LIEF with the following piece of code

#include <LIEF/LIEF.h>
int main() {
  return 0;
}

gcc -c test_lief.c

but receive errors because the redefinition of enum types SECTION_TYPES, SECTION_FLAGS,... which are defined both in ELF/enums.h and MachO/enums.h.

@romainthomas
Copy link
Member

Thanks for the report, I will look at it

@romainthomas romainthomas self-assigned this May 15, 2017
romainthomas added a commit that referenced this issue Jan 17, 2022
Enums changes (C++/C):

ELF:
  * s/SECTION_TYPES/ELF_SECTION_TYPES/
  * s/SECTION_FLAGS/ELF_SECTION_FLAGS/
  * s/SYMBOL_TYPES/ELF_SYMBOL_TYPES/
  * s/SEGMENT_FLAGS/ELF_SEGMENT_FLAGS/

MachO:
  * s/SECTION_TYPES/MACHO_SECTION_TYPES/
  * s/SECTION_FLAGS/MACHO_SECTION_FLAGS/
  * s/SYMBOL_TYPES/MACHO_SYMBOL_TYPES/
  * s/SEGMENTS_FLAGS/MACHO_SEGMENTS_FLAGS/

PE:
  * s/SECTION_TYPES/PE_SECTION_TYPES/

Resolve #32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants