-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels