Re: [Dev-C++] include files those with a .h?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elias P. <Eli...@ao...> - 2000-12-29 22:36:57
|
> ok i've got my dev cpp ver 4.0 ready to boogy with! > > cos i'm a novice at the moment bear with me..simple questions first. > > all the include files for a program end with .h correct? yes, although in C++ they can also end in .hpp > so when you compile a program and it has errors saying it can not find the > .h files you have them stored on the hard drive in the wrong place! > > So saying that do all the include files have to be in the dev cpp include > directory? or is there a simpler easier way to go about it? You can add additional pathes for include files in Dev-C++ for a project when you type them in the "extra include directories" box. Or you can add them to Options/Compiler Options/Directories. And of course, your own include files can always be in the same directory as the source code files. But you have to use #include "..." instead of <...> then. |