News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Help with including header files

Started by joaoturolla, June 26, 2014, 03:43:34 AM

Previous topic - Next topic

joaoturolla

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...

stahta01

#1
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

Quote
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Just found more info on cs50 from https://manual.cs50.net/library/

The "global environment" section of CB FAQ might be better in this case for Non-Windows users.

Quote
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]