intelxed / xed

The X86 Encoder Decoder (XED), is a software library for encoding and decoding X86 (IA32 and Intel64) instructions
https://intelxed.github.io/
Apache License 2.0
1.38k stars 146 forks source link

Undefined reference to xed_iform_map #279

Open GammaPi opened 2 years ago

GammaPi commented 2 years ago

When building xed_iform_map is undefined. I know it has little information to help debugging. I just want to see if others encounters the same problem.

I already added extern "C" when importing xed-interface.h:

#ifdef __cplusplus
extern "C" {
#endif

#include "xed/xed-interface.h"

#ifdef __cplusplus
};
#endif

It looks like #include "xed-build-defines.h" is not placed in every file.

Built using gcc-9 on ubuntu 20.04

GammaPi commented 2 years ago

I also observe using default build, XED_ENCODER is undefined for some header files.