Re: include-paths (Rob Craig)
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 07, 2001
- 519 views
> Here's something that I can find quite annoying: > > Say that I have a file called FOO.EX in wich I do the following > > include inc\bar.e > > > where "inc" is a subdirectory to the same directory that FOO.EX belongs to. > Now, if I include a third file in BAR.E (wich is in the same directory as > BAR.E), like this: > > include grill.e > > I will get an error saying "can't find c:\...\grill.e". To make it work I > have to write "include inc\grill.e" instead. > My question is; why can't Ex look for include files in the directory of > their direct "parent" (BAR.E in this case), and not only in the directory of > FOO.EX ? This would be very useful to me also, atm I do it by having all programs include files as ..\directory\include.e It's useful to have include files in separate directories, you can include documentation and test programs with them while keeping it separate from the main program and the other includes. Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/