Author Topic: Help with including header files  (Read 5994 times)

joaoturolla

  • Guest
Help with including header files
« 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...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Help with including header files
« Reply #1 on: June 26, 2014, 12:54:20 pm »
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.
« Last Edit: June 26, 2014, 12:57:14 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Help with including header files
« Reply #2 on: June 26, 2014, 01:04:45 pm »
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++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org