1

I've tried everything I found on the web but can't make cs50 library working with codeblocks. My pc becomes slow when I run appliance. So, sometimes I need to work with codeblocks. Please, somebody help.

5

Just got it and posting if it might come to help. You got to do two things:

A. Add library to the compiler:

  1. Right click on the project
  2. Click on the "Build options"
  3. Click on "Search Directory"
  4. Click on "Compiler"
  5. Add the library folder path

B. Add library header files and source file to your project:

  1. Right click on the project
  2. Click "Add files recursively"
  3. Add the library

And everything works.

| improve this answer | |
2

Can confirm this works. Thank you for this! :)

| improve this answer | |
1

Much appreciated! Worked perfectly. Only thing I would like to add is the library can be found here https://github.com/cs50/libcs50

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .