User forums > Using Code::Blocks

Noob question about inlcuding .h files

<< < (2/2)

Jenna:

--- Quote from: gomer on November 27, 2008, 10:10:44 pm ---First of all - thanx for the incredibly quick reply!

Ok - I think I've got it.  The Sources / Headers virtual folders only separate the various project inputs by file type.  C/C++ sources get translated into object files via a compiler when building, but .H files don't.  I.E. header files and all non source code file types are ignored as project inputs even though they appear  as such in the project hierarchy.

thanx again.

--- End quote ---

No they are not ignored (at least not if they get included with the #include-statement), but as posted over and over again:

this is not a general programming forum, only C::B related questions should be asked.

Read a good book/tutorial to learn something about the basics of how compiler, linker etc. work.

gomer:
This is a C::B issue.  Project files belong to C::B and not to compilers nor linkers and, btw, I am familiar with a number of compilers and linkers on a number of different platforms.  The question was/is : what does C::B do (if anything) with .H/.HPP files listed under projects? This question could also be extended to .lib, .dll, .xxx, etc. files. I.E. any files other than .c, .cpp, and .rc (perhaps).

Navigation

[0] Message Index

[*] Previous page

Go to full version