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.
3 Answers
Just got it and posting if it might come to help. You got to do two things:
A. Add library to the compiler:
- Right click on the project
- Click on the "Build options"
- Click on "Search Directory"
- Click on "Compiler"
- Add the library folder path
B. Add library header files and source file to your project:
- Right click on the project
- Click "Add files recursively"
- Add the library
And everything works.
Much appreciated! Worked perfectly. Only thing I would like to add is the library can be found here https://github.com/cs50/libcs50