-
Notifications
You must be signed in to change notification settings - Fork 866
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
Can't link to libcs50 #331
Comments
Hi @jacoboneill , export DYLD_LIBRARY_PATH="/usr/local/lib:$DYLD_LIBRARY_PATH" After adding that, I restarted my terminal and build the code. It worked. Hope this helps. Thanks to - #324 (comment) |
This does indeed solve the CS50 lib problem, but apparently in macOS Ventura 13.6.8 (x86_64) it breaks:
|
The solution I ended up coming up with was to install a copy of the libcs50 library, and then link it and use a custom Makefile Install
|
Running on an intel mac, after running
sudo make install
on the library, and compiling a basic c file:I get an error that it can't load the library libcs50-11.0.2.dylib (I run
clang main.c -o ./a.out -lcs50
)After trying all the troubleshooting steps (setting C_INCLUDE_PATH, LD_LIBRARY, LIBRARY_PATH) nothing seems to help. I found a hacky way by running
ln -s /usr/local/lib/libcs50-11.0.2.dylib ./libcs50-11.0.2.dylib
(as it said it tried to search for it in the local folder in the debug). This works but I feel as though probably not the intended way to do it.I can't tell if I did something wrong, or if there is something wrong with libcs50's makefile.
The text was updated successfully, but these errors were encountered: