cs50.h is a header file. Header files are NOT linked. They are included. What is linked is a library binary file.
If you have successfully installed the cs50 library according to the instructions here, then follow these steps to link it by default when executing make
open up a terminal window (Ctrl + Alt + T)
change directories to your home directory by executing
cd
(if you're not there already)execute
gedit .bashrc
at the end of the file add
export LDLIBS=-lcs50
save the file and exit
close the current terminal window and open a new terminalone or just execute
. .bashrc
(in the current one) and try usingmake
For more information about which variables that make
uses for its implicit rules, see this!