 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Vladimir Stefanovic Guest
|
Posted: Fri Jul 08, 2005 4:38 pm Post subject: #include "PATH" |
|
|
Hi,
I always added my header paths manually (with no IDE help):
#include "file.h" // same folder
#include "..\file.h" // level -
#include "folder\file.h" // level +
But then I noticed that, when I add those paths from IDE (File/ Include Unit
header)
they alwas add them in the 'same folder', and the app compiles without
problems...
Does that mean that I was wrong because of bothering about right path?
--
Best regards,
Vladimir Stefanovic
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Jul 08, 2005 5:44 pm Post subject: Re: #include "PATH" |
|
|
"Vladimir Stefanovic" <antivari (AT) po (DOT) sbb.co.yu> wrote
| Quote: | But then I noticed that, when I add those paths from IDE (File/
Include Unit header) they alwas add them in the 'same folder',
and the app compiles without problems...
|
That is because the IDE automatically inserts the appropriate paths into the
"Includes" directories list of the project, which you can view in the
"Directories/Conditionals" section of the Project Options dialog.
| Quote: | Does that mean that I was wrong because of bothering about right path?
|
No.
Gambit
|
|
| Back to top |
|
 |
Vladimir Stefanovic Guest
|
Posted: Fri Jul 08, 2005 7:05 pm Post subject: Re: #include "PATH" |
|
|
Thank you...
How do you include paths, the IDE way or 'relative path' way?
--
Best regards,
Vladimir Stefanovic
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
"Vladimir Stefanovic" <antivari (AT) po (DOT) sbb.co.yu> wrote in message
news:42ceac0b$1 (AT) newsgroups (DOT) borland.com...
But then I noticed that, when I add those paths from IDE (File/
Include Unit header) they alwas add them in the 'same folder',
and the app compiles without problems...
That is because the IDE automatically inserts the appropriate paths into
the
"Includes" directories list of the project, which you can view in the
"Directories/Conditionals" section of the Project Options dialog.
Does that mean that I was wrong because of bothering about right path?
No.
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Jul 08, 2005 9:23 pm Post subject: Re: #include "PATH" |
|
|
"Vladimir Stefanovic" <antivari (AT) po (DOT) sbb.co.yu> wrote
| Quote: | How do you include paths, the IDE way or 'relative path' way?
|
Both. I mix them. There are adantages and disadvantages to both ways. The
"IDE way" products cleaner code, but requires project settings to be
configured. The "relative path" way requires less project changes, but then
requires more rigid folder structures on the hard drive, which becomes more
important if you are sharing the project with other people.
Gambit
|
|
| Back to top |
|
 |
Vladimir Stefanovic Guest
|
Posted: Sat Jul 09, 2005 4:17 am Post subject: Re: #include "PATH" |
|
|
Thank you.
--
Best regards,
Vladimir Stefanovic
| Quote: | How do you include paths, the IDE way or 'relative path' way?
Both. I mix them. There are adantages and disadvantages to both ways.
The
"IDE way" products cleaner code, but requires project settings to be
configured. The "relative path" way requires less project changes, but
then
requires more rigid folder structures on the hard drive, which becomes
more
important if you are sharing the project with other people.
Gambit
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|