Skip to main content
added 54 characters in body
Source Link
kzidane
  • 17.7k
  • 3
  • 28
  • 100

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

  1. open up a terminal window (Ctrl + Alt + T)

  2. change directories to your home directory by executing cd (if you're not there already)

  3. execute gedit .bashrc

  4. at the end of the file add

    export LDLIBS=-lcs50
    
  5. save the file and exit

  6. close the current terminal window and open a new terminalone or just execute . .bashrc (in the current one) and try using make

For more information about which variables that make uses for its implicit rules, see this!

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

  1. open up a terminal window (Ctrl + Alt + T)

  2. change directories to your home directory by executing cd (if you're not there already)

  3. execute gedit .bashrc

  4. at the end of the file add

    export LDLIBS=-lcs50
    
  5. save the file and exit

  6. open a new terminal or just execute . .bashrc and try using make

For more information about which variables that make uses for its implicit rules, see this!

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

  1. open up a terminal window (Ctrl + Alt + T)

  2. change directories to your home directory by executing cd (if you're not there already)

  3. execute gedit .bashrc

  4. at the end of the file add

    export LDLIBS=-lcs50
    
  5. save the file and exit

  6. close the current terminal window and open a new one or just execute . .bashrc (in the current one) and try using make

For more information about which variables that make uses for its implicit rules, see this!

Source Link
kzidane
  • 17.7k
  • 3
  • 28
  • 100

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

  1. open up a terminal window (Ctrl + Alt + T)

  2. change directories to your home directory by executing cd (if you're not there already)

  3. execute gedit .bashrc

  4. at the end of the file add

    export LDLIBS=-lcs50
    
  5. save the file and exit

  6. open a new terminal or just execute . .bashrc and try using make

For more information about which variables that make uses for its implicit rules, see this!