I'm trying to install the cs50 library on my mac, and I found and followed the instructions here. All the terminal commands appear to execute without error. I also confirmed that the directories it tries to create /usr/local/include
and /usr/local/lib
exist and that the appropriate files were moved to each.
However when I #include
the header file and try to compile in XCode, it says that it can't find cs50.h
. Anyone have any ideas on why I'm having trouble? I'm on a Macbook Pro Retina 2012 running 10.9.4.
libcs50.a
andcs50.h
which should be moved. What do you see when you enterls -l /usr/local/include
orls -l /usr/local/lib
? If you don't see these files in those locations then something went wrong and you may need to redo it.