User forums > Help
Code::Blocks Project Dosen't Work Correctly
kittyhacker101:
It looks like that it worked. It gave me an error for another .h file. Do I have to do this for every .h file?
stahta01:
--- Quote from: kittyhacker101 on August 25, 2015, 04:26:01 pm ---It looks like that it worked. It gave me an error for another .h file. Do I have to do this for every .h file?
--- End quote ---
You have to add every directory (to CB include/header search) that is needed to find the headers.
Tim S.
kittyhacker101:
This will take a while... I have 50 header files >:(
MortenMacFly:
Of course the compiler doesn't look automatically into sub folders. The reason is simple: Assume you have a header file with the same name in two sub folders. Which is the right one? The compiler cannot know. It's up to the developer to "tell" the compiler. Looks like you haven't developed much, have you?
raynebc:
I never had to do anything like add each include folder to Codeblocks' search settings, just added the header files to my projects. There must be something really wrong with your compiler installation.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version