<div>Yeah, I'm positive that the relative path exists from the files location.  To make 100% sure, I whipped up a little test.  If you create a file like this:</div>
<div> </div>
<div>C:\xmlTest\testA.h:</div>
<div> </div>
<div>#define SOME_CONSTANT = 1;</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>And then create another file like this:</div>
<div> </div>
<div>C:\xmlTest\tempDir\testB.h:</div>
<div> </div>
<div>//#include "../testA.h"</div>
<div>//#include "c:\xmlTest\testA.h"</div>
<div> </div>
<div>#define OTHER_CONSTANT = SOME_CONSTANT;</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>Save both of them, and create a folder inside of another folder.  Place testA.h in the first folder, and testB.h in the second folder.  If you uncomment the first #include, you get a "cannot find file" error.  If you uncomment the second include (and you fix it for the actual paths of the folder you created) then it will work.
</div>
<div> </div>
<div> </div>
<div>I'll freely admit I'm not the best at this kind of thing, but I'm pretty sure it should work no matter which one you uncomment.  Did I make a stupid mistake somewhere or am I missing something?<br><br> </div>

<div><span class="gmail_quote">On 9/25/07, <b class="gmail_sendername">Brad King</b> <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Chris Friedemann wrote:<br>> Sorry, I guess I should have been more clear.<br>><br>> What I'm confused as to if I run gcc-xml on a .h file that has an
<br>> include preproccesor definition that contains a fully specified path like:<br>><br>> #include "C:\dev\dirA\dirB\dirC\header.h"<br>><br>> then it works without using the -I flag at all.<br>>
<br>> However, if the path is not fully specified like this:<br>><br>> #include "../../dirC/header.h"<br>><br>> then I get the "could not find file header.h" error message.  Neither of<br>
> these examples use the -I flag, but one works and the other doesn't.<br>> I'm just curious as to the reason why.<br><br>Where is the input .h file in your example?  Does the<br>"../../dirC/header.h" file exist relative to its location?  If not, then
<br>"../../dirC/header.h" must exist relative to a directory specified with<br>-I.  This is standard on all compilers.<br><br>-Brad<br></blockquote></div><br>