Code::Blocks Forums
User forums => Help => Topic started by: joaoturolla on June 26, 2014, 03:43:34 am
-
So, I want to include CS50.h but it isnt accepting, I saw a solution in this toppic: http://cboard.cprogramming.com/c-programming/121263-plz-help-me-include-cs50-h-cs50-c-into-code-block.html
But I dont know where to type that commands...
-
From http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F)
For your project :
- Right click on the project then select Build options
- Select the directories tab
- Add the required paths for compiler and linker.
- Add your specific libraries in the linker tab.
- Pay attention to project settings and target settings.
In your case, I lined thru the part I think you can ignore.
Tim S.
-
Just found more info on cs50 from https://manual.cs50.net/library/ (https://manual.cs50.net/library/)
The "global environment" section of CB FAQ might be better in this case for Non-Windows users.
For global environment :
- Menu Settings/Compiler and debugger
- In the Global compiler settings, select the directories tab
- Add the required paths for compiler and linker.
Tim S.