libcs50
libcs50 copied to clipboard
Minor version is stripped
When running sudo make install
on a MacOs Mojave 10.14.5 version 9.0.1, I get the following error:
cp: build/lib/libcs50.dylib: No such file or directory
The issue is that the LIB_MAJOR
is not picking up the minor semvers on line 25 of the Makefile. As a temporary hack for my version, I've changed line 25 to
LIB_MAJOR := libcs50-$(VERSION).dylib
I will submit a PR but I imagine there may be other considerations (e.g. doing in-place updates?). Thanks! Paula
PR: https://github.com/cs50/libcs50/pull/172
After some further digging, I found that the linking in the build/lib is not working correctly. A workaround is:
-
cd build/lib
-
sudo ln -sf libcs50-9.0.1.dylib libcs50-9.dylib
However, running make clean
will remove this linking, so it's obviously a temporary hack!