xed icon indicating copy to clipboard operation
xed copied to clipboard

undefined reference to `xedex_append_string' when compiling examples/xed-ex1.c

Open aagontuk opened this issue 4 years ago • 0 comments

I am trying to compile examples/xed-ex1.c in following way:

$ cd kits/xed-install-base-2020-05-10-lin-x86-64/
$ gcc -I./include/ -I./examples/ -c ./examples/xed-ex1.c
$ gcc -o xed-ex1 xed-ex1.o ./lib/libxed.a

But it is generating following linker error:

/usr/bin/ld: xed-ex1.o: in function main': xed-ex1.c:(.text+0x1546): undefined reference to xedex_append_string' /usr/bin/ld: xed-ex1.c:(.text+0x15bc): undefined reference to `xed_convert_ascii_to_hex' collect2: error: ld returned 1 exit status

Why is this happening?

aagontuk avatar May 10 '20 19:05 aagontuk