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

Support of == #17

Open
pengyu opened this issue Aug 8, 2021 · 1 comment
Open

Support of == #17

pengyu opened this issue Aug 8, 2021 · 1 comment

Comments

@pengyu
Copy link

pengyu commented Aug 8, 2021

The following code does not work. Can it be fixed?

$ cat a.awk
function f(x) {
	return x == "a"
}
{ print $0, f($0) }
$ awka -f  a.awk  > a.c
$ gcc -lawka a.c
Undefined symbols for architecture x86_64:
  "_awka_strncpy", referenced from:
      _main in a-860d69.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@jlp765
Copy link

jlp765 commented Sep 20, 2022

The issue is the libawka library is not being found by the linker (or not matched to the x86_64 architecture).

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

2 participants