Hi,
When you include a standard library header from the compiler you use =
<...>, i.e. #include <iostream>, but when including a header that is in =
the same directory as the source then you should use "...", i.e. =
#include "MyHeader.h". That is probably your problem without seeing your =
code You can if you want write includes with standard directory info, =
i.e. #include "C:\MyProg\Myheader.h", but it's best to use relative =
paths rather than specific. If you are trying to include a standard =
header that isn't in the main include directory then you can go to the =
options (either project or compiler; depending) and add the path to =
search to the relevant field.
Jason.
----- Original Message -----=20
From: Nick Easler=20
To: dev...@li...=20
Sent: Thursday, October 18, 2001 10:45 PM
Subject: [Dev-C++] #include
I'm learning c++ using dev-c++ and I can't seem to include source =
within the same project. Is there a way to setup dev-c++ so it looks for =
files in the current project directory when you #include them? =
Otherwise, I'd have to move them to the include directory, which is a =
real pain in the butt.
Thanks.
Nick Easler
|