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

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

Open
aagontuk opened this issue May 10, 2020 · 0 comments

Comments

@aagontuk
Copy link

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?

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

No branches or pull requests

1 participant