Author Topic: How do I add new downlaoded header files to codeblocks?  (Read 4125 times)

JaydenFernandez

  • Guest
How do I add new downlaoded header files to codeblocks?
« on: September 15, 2021, 01:48:28 am »
I want to add std_lib_facilities.h to codeblocks, but I don't know where to put it.  Even if I think I placed it in the right folder, it still returns a 'fatal error' because it can't locate the header file, when I include it in my program.

I also want seed_randint() to be a function in my program, but it doesn't show up in scope, so I need to download a header file for that too.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How do I add new downlaoded header files to codeblocks?
« Reply #1 on: September 15, 2021, 03:34:16 am »
Add the folder to the project search path.
Post the Code::Blocks build log to help us help you.

How to add folder to the project search path:

Project -> Build Options
Tab: Search directories
Sub-Tab: Compiler
Button: Add
Button that looks like an folder
Enter path that contains folder
If asked to keep this path as relative? Click yes
Click OK if needed


Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org