-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Problem Running Tests with Readline Library in C #593
Comments
Hi @rohan-mehta-1024 , try adding |
Hello @dubek, unfortunately this returns the same error message. Also, that |
Actually, now if I compile it first by running /Applications/Xcode.app/Contents/Developer/usr/bin/make -C impls/c step0_repl
|
I have since fixed the issue, thanks! (I had to add executable permissions to my |
Hello I am having an issue trying to run the first test (my implementation is in C). I have created the following makefile which works when I run "make" in the directory of my implementation:
program: step0_repl.c
gcc -ledit step0_repl.c
But when I try to run the first test, it gives this error (there is some problem with the readline library?):
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C impls/c step0_repl
cc step0_repl.c -o step0_repl
Undefined symbols for architecture x86_64:
"_readline", referenced from:
_main in step0_repl-dcb634.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [step0_repl] Error 1
make: *** [impls/c/step0_repl] Error 2
I am very new to C and so don't understand what's going on. Apologies if this is an obvious question.
The text was updated successfully, but these errors were encountered: